note 35794 deleted from ref.exec by tomsommer
| From: | tomsommer@php.net | Date: | Sun, 31 Oct 2004 12:59:43 +0000 |
| Subject: | note 35794 deleted from ref.exec by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79396@lists.php.net to get a copy of this message | ||
Note Submitter: fdqps at alfaproject dot com
----
Windows users.
This is just a summarisation of other mails in this list but I hope it will save others some time.
To run the program:
C:\prg Path\program.exe -var1"Hello" -var2"World"
You need to do the following:
$exe = "start /D \"C:\\prg Path\\" \B program.exe -var1\"Hello\"
-var2\"World\"";
exec($exe);
As you have a space in the path you need to put it between "". Also ypu need to escape the
slash in the path (\\). As you see you need to escape the "" for the two variables.
Best regards Fredrik