471,854 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Ajax and the Webroot


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,
Jul 26 '07 #1
1 1902
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

Post your reply

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

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.