exec returns empty array
Posted: Mon Mar 17, 2003 3:58 pm
Hi,
Could anyone please help me?
The exec command from PHP does not return anything on win xp with IIS.
This is my code:
$command='M:\gs\gs8.00\lib\ps2ascii M:\gs\gs8.00\lib\a.pdf'
exec($command,$resultArray,$rv);
The application “'M:\gs\gs8.00\lib\ps2ascii” works fine from the command line.
It displays the output(text extracted from a pdf file) in the dos box. The goal is to get this output in a array in php.
With exec I get an empty $resultArray.
Does anyone know a solution?
(I am getting desperate)
Thanks in advance,
Charles.
cvlug@xs4all.nl
Could anyone please help me?
The exec command from PHP does not return anything on win xp with IIS.
This is my code:
$command='M:\gs\gs8.00\lib\ps2ascii M:\gs\gs8.00\lib\a.pdf'
exec($command,$resultArray,$rv);
The application “'M:\gs\gs8.00\lib\ps2ascii” works fine from the command line.
It displays the output(text extracted from a pdf file) in the dos box. The goal is to get this output in a array in php.
With exec I get an empty $resultArray.
Does anyone know a solution?
(I am getting desperate)
Thanks in advance,
Charles.
cvlug@xs4all.nl