Re: running a batch file from PHP
| From: | DvDmanDT | Date: | Wed, 11 Jun 2003 22:09:02 +0000 |
| Subject: | Re: running a batch file from PHP | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-20279@lists.php.net to get a copy of this message | ||
$result =
batfile.bat;
Would do the trick... Notice that it's ` (backtic), not single quote '....
<lanceq@uncle-eazy.com> skrev i meddelandet
news:20030611185748.53388.qmail@pb1.pair.com...
> Hello all,
>
> I would like to run a batch file in the background, using PHP and Apache
on
> Win2k Server. I use ANALOG to generate usage stats for my different web
> sites. Some of the web masters expressed that they would like to update
the
> usage whenever they want.
>
> I've got batch files written that run the reports, filter the reports
> through ReportMagic and copy the results to the appropriate directories.
> These are run every night through Windows task scheduler.
>
> Is there a way to do this with PHP? I've looked at exec and passthru, but
> I'm still having trouble.
>
> Thanks in advance,
> Lance
>
>