[thelist] PHP exec()

Emma Jane Hogbin emmajane at xtrinsic.com
Tue Jul 1 17:58:39 CDT 2003

I'm having a bear of a time trying to figure out this one...

I have an insanely simple script:
$base = "/home/emmajane/pictures";
$jhead = "/bin/ls '$base'";
$exif = exec($jhead . "&> error ", $output, $status);
print $exif;
// nothing prints
// $output is an empty array
// $status is "1"

When I call it up in a web browser nothing prints to the page, and no
error file is created. Am I missing something totally obvious?

safe mode is OFF, it's a linux system, PHP is an apache module. None of
these things seem to be a problem according to teh exec reference page
above. Am I missing something else?



Emma Jane Hogbin
[[ 416 417 2868 ][ www.xtrinsic.com ]]

More information about the thelist mailing list