"Jason" <networkad...@emarket2.com> píse v diskusním príspevku 
news:70.f5.09584.8465b...@pb1.pair.com...
> At 16:49 18/12/2008, you wrote:
>>Hi,
>>I am looking for some method, how to run php cli script on background in
>>windows. It should be started by windows task manager.
> 
> Run php-win.exe rather than php.exe, this will prevent the console 
> window from opening whilst the task is running.
> 
> Schedule as normal using the Task Scheduler. We have several such 
> tasks on our 2K3 SP2 server running this way. Should you need to 
> debug, change the php-win.exe back to php.exe to see the console output.
> 
> 
> Example commandlines:
> 
> d:\php\php-win.exe d:\phpcli\phpinfo.php
> 
> This will result in no output.
> 
> d:\php\php.exe d:\phpcli\phpinfo.php
> 
> Will result in a console window appearing and the phpinfo(); output 
> printed, then the window will close.
> 
> HTH
> J 
>

This looks it works. Great! That is what I was looking for. Thank you very much.

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

Reply via email to