Re: CLI in background on windows

From: Date: Fri, 19 Dec 2008 08:06:51 +0000
Subject: Re: CLI in background on windows
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-284817@lists.php.net to get a copy of this message
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

« previous php.general (#284817) next »