Re: kill php.exe window

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/4/6 Andrew Williams <andrew4williams@xxxxxxxxx>:
> I mean How do I kill it automatically via script and not command line:
>
> File name: while_loop_script.php
>
>
> $ch = curl_init("mydomain/update_script.php?action=run");
> curl_exec($ch);
> curl_close($ch);
>
> {exit or kill  script}
>
> window schedule task:
> run box: php.exe to scheldule task it every 5 minutes:
>
> C:\php.exe D:\update\while_loop_script.php

It's been a while since I've used PHP on Windows but IIRC you want to
be using php-cli.exe not php.exe.

-Stuart

-- 
http://stut.net/

> On Mon, Apr 6, 2009 at 11:39 AM, Marc <lists@xxxxxxxxxx> wrote:
>
>> >I need to exit php.exe window after completing an assigned task. Does
>> anyone
>> >knows how to close, exit,  kill or stop the window
>>
>> Run your PHP.exe by using appending "& exit" to your command. For instance:
>>
>> php.exe [YOUR COMMAND ARGS] & exit
>>
>> Greetings from Germany
>>
>> Marc
>>
>> --
>> Sync and share your files over the web for free
>> http://bithub.net/
>>
>> My Twitter feed
>> http://twitter.com/MarcSteinert
>>
>>
>
>
> --
> Best Wishes
> Andrew Williams
>

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux