Page 1 of 1

online file browser help!!

Posted: Mon Aug 11, 2003 8:33 am
by vangelis
Here is what i am trying to do...
i am trying to create an online file browser for my site. It works fine offline on my PC but online is a different story. I get a 'permission denied' warning when i try to access the directory where my files are in. The server has several users files stored and i understand that some sort of authorisation is required. I do ofcourse have the username and password for my site, but what it should do is access only MY directory directly without messing around with other people's directories.

This is the warning message i get:
Warning: opendir(/home/username/): failed to open dir: Permission denied

How can i authenticate and view my files? Any help would be appreciated

Posted: Mon Aug 11, 2003 9:07 am
by daven
You need to CHMOD the directories to permit reading. Try 755ing them.
in the shell: chmod 755 /the/directory/path
in PHP: chmod("/the/directory/path", 0755)

Posted: Mon Aug 11, 2003 9:16 am
by vangelis
you mean without providing a username and a password...if that works i will have access to other users directories and will be able to tamper with their files!!