473,231 Members | 1,887 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

Ajax and the Webroot

Hello,

I have been developing an ajax/php app. In development I have kept everything in the webroot for ease, but as the project matures, I would like to move all the application code outside the webroot. The problem is you can't include js files in html that are outside the wwwroot. Also, all ajax requests are made to a url, not a relative path, which means all the php also needs to be in the wwwroot. Is there a simple way around this issue, or am I stuck?

Thank you,
Strates
Jul 26 '07 #1
1 1979
pbmods
5,821 Expert 4TB
Heya, Strates. Welcome to TSDN!

Under what circumstances would you want a User's browser to be able to access files outside of the designated 'safe' area on you server's hard drive?

You could set up a virtual host dedicated to AJAX requests, but you may run into some authentication issues.
Jul 26 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Francois Soucy | last post by:
I've 2 projects in same WEbRoot. Each project has is own Subdirectory. Project #1: /Journal/ '<-- Anonymous /Journal/Admin/ ' <-- WebForm Authentication for each web page Project #2:...
0
by: Jimmy | last post by:
Hi Is it possible to define more than 1 webroot for your virtual directories on a machine? if yes how to do that? ch Jim
2
by: Francesco | last post by:
Hi there! I'm trying to organize my sources into a webroot tree like this, webroot index.htm - only contains index.php into a frame index.php - require_once('inc/layout.php') ...
5
by: firewoodtim | last post by:
I want to display an uploaded file (e.g. a pdf file) in a "_blank" target window. The file is stored outside of the webroot at "/home/myhome/uploads/" and was uploaded by a trusted user with the...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.