Crimpage Posted January 18, 2007 Share Posted January 18, 2007 Hi All,I use the e-dir script to show folder contents etc... I have modded the hell out of it for my own use, including having a variable starting directory.In the script, you can set the start directory to be whatever you like, including something outside of the apache/iis wwwroot folder. However when the script generates the html link to the file it will look like it is a subdirectory of the wwwroot folder, and therefor the file does not exist. It's a little confusing.Let say my wwwroot folder is at:c:\wamp\wwwand i have the script pointing my start directory tod:\the script will show everything from my D drive. all well and good. But, when I click on one of the files it links to:http://server/file.jpgwhich apache thinks is at c:\wamp\www\file.jpgIs there anyway of making php or apache pull files from outsite of the wwwroot folder on the fly or does everything need to be within the wwwroot folder?Cheers,Dave Quote Link to comment https://forums.phpfreaks.com/topic/34807-accessing-files-outside-of-www-folder/ Share on other sites More sharing options...
HuggieBear Posted January 19, 2007 Share Posted January 19, 2007 As far as I know, it can read them, but can't server them, hence being "Outside" the webroot.There's no point in having private directories outside the webroot if they can be accessed from the web, kind of defeats the objective, don't you think :)RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/34807-accessing-files-outside-of-www-folder/#findComment-164355 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.