RE: [PHP] How to Execute Exe File from PHP
| From: | Alice Wei | Date: | Wed, 22 Oct 2008 02:14:48 +0000 |
| Subject: | RE: [PHP] How to Execute Exe File from PHP | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-282219@lists.php.net to get a copy of this message | ||
HI,
To answer your questions, I run this on Windows. What is so weird is that when I do
$a= shell_exec("C:\Inetpub\wwwroot\/test.exe -m$market -d$length");
echo $a;
It works, and echoes everything as it is supposed to, and the file is also generated like I
expected. However, the PHP file where I execute this from is in the same folder (which is why I
thought using a . would work)
Could anyone please tell me if this is only way Ito do this on a Windows machine?
Thanks in advance, I think I am getting a little confused.
Alice
_________________________________________________________________
Search from any Web page with powerful protection. Get the FREE Windows Live Toolbar Today!
http://get.live.com/toolbar/overview