469,323 Members | 1,496 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

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 1798
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

Post your reply

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

Similar topics

12 posts views Thread by Francois Soucy | last post: by
reply views Thread by Jimmy | last post: by
5 posts views Thread by firewoodtim | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.