in Win32 env: calling external pgm from PHP script

From: Date: Tue, 17 Sep 2002 09:51:27 +0000
Subject: in Win32 env: calling external pgm from PHP script
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-15860@lists.php.net to get a copy of this message
I always have found aid on this NG and want to write tanks to all of this. I hope that also in this occasion to find an aid and of the indications for my problem. My env it is Win32 with Aoache 1.3.24 and PHP 4.2.1. I have a pgn .exe files that I want to execute from script PHP and I want to post it same parameters like par1, par2..... and so on. I like also to receive from pgm a feedback or return code for to test a result of the esecution. I have make a script such like below but it not work: <? $cmd=('D:\\winnt\\system32\\write.exe'); echo"<br>cmd=$cmd<br>"; exec($cmd); ?> My system root it is : D:\winnt\system32\....... My document root it is D:program files\apache group\apache\htdocs. The url of the browser when I call the script it is: http://localhost/exec/zip.php If there sameone have same sample code to send to me or same indication how to resolve it?????????????? Ciao Franco. www.infocamere.it franco.pozzer@infocamere.it

« previous php.windows (#15860) next »