[PHP] why is this shell_exec() failing to execute my shell to create a symlink?

2009-06-27 Thread Govinda
this code: ?php $testOutput = shell_exec(ls); $where2cd2='testDir/'; $firstCMD=cd $where2cd2; $firstOutput = shell_exec($firstCMD); // $firstOutput = shell_exec('cd testDir/'); $testOutput2 = shell_exec(ls); $secondCMD='ln -s

Re: [PHP] why is this shell_exec() failing to execute my shell to create a symlink?

2009-06-27 Thread Jonathan Tapicer
Make sure that: - The user executing the script (apache I presume) has execute permissions on ls and ln binaries. - The user executing the script has write persmissions on the directory you are trying to write, and read permissions where you do ls. - This will probably help: put the full binary