[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-windows
Subject:    Re: [PHP-WIN] PHP and batch-files
From:       Don MacGregor <sir_sunkee () yahoo ! ca>
Date:       2008-12-10 23:31:54
Message-ID: 20946457.post () talk ! nabble ! com
[Download RAW message or body]


Hi,

I have a batch file on my server (Win 3K + IIS 6) I can run that by double
click now I want to run that batch file using my PHP page (that Batch file
run an exe on my Server and create a new text file as a result of that) Is
this possible? How?

Thanks


Elizabeth Smith wrote:
> 
> Gustav Wiberg wrote:
>> Hi there!
>>  
>> I want to use PHP to run as a "batch-file" on the server every night. 
>> What are the alternatives for doing this.
>> I'm using II6 and Win2003 Server, and PHP as an ISAPI-module. (vers
>> 5.2.2)
>>  
>> Best regards
>> Gustav Wiberg
> 
> The easiest way to do this would be to simply install the cli binary as 
> well - php.exe (NOT php-cgi.exe) which doesn't need a webserver - and do 
> a scheduled task that calls "path to your cli"/php.exe "path to your 
> script here" - I use php a lot on windows for generic  scripting tasks.
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/PHP-and-batch-files-tp10911250p20946457.html
Sent from the Php - Windows mailing list archive at Nabble.com.


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic