You should try:
Yo - try this
<?
exec('cmd /c "write.exe" ');
?>
-----Original Message-----
From: Pozzer Franco [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 4:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] in Win32 env: calling external pgm from PHP script
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
[EMAIL PROTECTED]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php