Executing .exe files Issues
| From: | Alice Wei | Date: | Thu, 22 Jan 2009 21:22:44 +0000 |
| Subject: | Executing .exe files Issues | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-29130@lists.php.net to get a copy of this message | ||
Hi, PHP Window Users:
I have a snippet of code as in the following:
<?php
$filename="Test123.txt";
shell_exec("C:\Inetpub\wwwroot\hello.exe -f$filename") or die ("Failed");
?>
The hello.exe was written in C and is meant to produce 6 files. The issue here is that when I tried
to run the PHP here, I keep on seeing "Failed". Am I not supposed to execute exe files
with this method?
Any tip on this would be great.
Alice
_________________________________________________________________
Express yourself with gadgets on Windows Live Spaces
http://discoverspaces.live.com?source=hmtag1&loc=us