Exec and System
| From: | Randall Barber | Date: | Fri, 09 Mar 2001 21:56:02 +0000 |
| Subject: | Exec and System | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-5920@lists.php.net to get a copy of this message | ||
I want my PHP script to execute an external program (which creates a file),
then php opens this file and fpassthru(..) the file to the browser.
The external exe needs a commandline arguement. This is what I have tried:
exec("c:\\path\\to\\exe\\myProg.exe myValue=123456789");
This, along with system(...) ALWAYS returns false.
I am on Win2k, IIS, and permissions on the directory and exe are Everybody: WRX
Any ideas?
Thanks
RDB