Re: Run batch files using php
| From: | Jason Barnett | Date: | Thu, 29 Apr 2004 04:24:48 +0000 |
| Subject: | Re: Run batch files using php | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-23583@lists.php.net to get a copy of this message | ||
Harpreet wrote:
I wrote a batch file using php . Can I run this batch file using php with the system or some other command. Please helpSure, you can call php from the command line and pass arguments to it (like the name of a php script to run). Or did you mean run a batch file from inside a php script? To do that, you need to use exec() http://www.php.net/function.exec