Search found 2 matches
- Wed Jun 16, 2010 4:22 pm
- Forum: PHP - Code
- Topic: PHP unable to access directory
- Replies: 2
- Views: 441
Re: Directory permissions changed when executing ls command?
I don't see what was "altered destructively": ., .., and galenhd all have the same ownership and permission bits set in both of those outputs. The error is probably about ls trying to stat that myshare directory. I think it's more of a problem with the mounting than with anything else - o...
- Wed Jun 16, 2010 3:19 pm
- Forum: PHP - Code
- Topic: PHP unable to access directory
- Replies: 2
- Views: 441
PHP unable to access directory
Hi, I'm having an issue where a PHP page running under apache alters destructively a directory's permissions, causing future attempts to access the directory to fail. A very simple script that lists a directory's contents seems to cause this: <?php $cmd = "ls -la /Volumes/ 2>&1"; exec(...