Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.