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
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
2 matches
Mail list logo