Hello,
First of all: i'm using PHP 4.0.6 with Apache 2.0 under Windows XP.
My problem:
exec() doesn't work with a command containing the ">" redirection.
For exemple this code works ($status returned is '0', which is good):
..
$pouet = "jpegtopnm.exe miam.jpg";
exec($pouet, $results, $status);
..
But this one dooesn't(no output file created, and the $status retreived is 259, which seems to be bad):
..
$pouet = "jpegtopnm.exe miam.jpg > output";
exec($pouet, $results, $status);
..
If i run the command "jpegtopnm.exe miam.jpg > output" directly with a shell, of course it works.
I can't use the $result array, because jpegtopnm.exe produces binary data.
Thanx for any help...
Aymerick Jéhanne