Jump to content

scandir or opendir question...


gjame

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.