exec() on Windows XP and IIS

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cvlug
Forum Newbie
Posts: 2
Joined: Mon Mar 17, 2003 3:58 pm

exec returns empty array

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

"M:", hmm, sounds like a network drive. Is it connected for the webserver-account, too?
Post Reply