gjame Posted January 11, 2007 Share Posted January 11, 2007 I'm fairly new to PHP so I'm not sure if this is possible. I want to be able to read the contents of a folder outside of the htdocs apache directory. I want to be able to read a directory from the /mnt directory, but when I specify this in either the scandir or opendir function, it gives me a no such file or directory error. The only time it works is if I specify a folder inside of my /usr/local/apache2/htdocs directory. Is it possible to see outside of this directory by using php, or is there a compile option in php or apache that allows me to do this?Thanks in advance for your help Link to comment https://forums.phpfreaks.com/topic/33771-scandir-or-opendir-question/ Share on other sites More sharing options...
HuggieBear Posted January 11, 2007 Share Posted January 11, 2007 I think you should be able to, so long as the user your server is running as has access to the directories.RegardsHuggie Link to comment https://forums.phpfreaks.com/topic/33771-scandir-or-opendir-question/#findComment-158359 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.