Page 1 of 1

exec returns empty array

Posted: Mon Mar 17, 2003 3:58 pm
by cvlug
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

Posted: Tue Mar 18, 2003 1:59 am
by twigletmac
Please don't hijack other threads and post your question more than once. Start your own topic (as I have now done from you) and reference the other threads in it if it is applicable. You are more likely to get help if you start your own topic than if you post to another.

Mac

Posted: Tue Mar 18, 2003 2:34 am
by volka
"M:", hmm, sounds like a network drive. Is it connected for the webserver-account, too?