On Thu, 22 Jul 2004 12:05, Bruce wrote: > ok... > > if i simply use the shell commands "exec/system/passthru" without > specifying a dir, ie exec("ls"), then it works. however, if i specify > "exec('ls /foo')" where foo is another dir, then i don't get a response. > is there someplace where i can open up the dirs/locations that the shell > commands can operate on...????
Unless /foo is a directory immediately under the root directory, this won't work. Remember taht if you are issuing a filesystem command, you need to use the filesystem path, not the location relative to your server document root. If you check the shell commands, you'll find that at least some of them have a facility to check the return value from the command, which may be useful for debugging. -- David Robley Change is inevitable, except from a vending machine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php