Re: run a process in background on Windows
| From: | TR Shaw | Date: | Wed, 08 Oct 2014 16:08:18 +0000 |
| Subject: | Re: run a process in background on Windows | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-323953@lists.php.net to get a copy of this message | ||
On Oct 8, 2014, at 11:50 AM, Christoph Becker wrote:
> Jim Lucas wrote:
>
>> On 10/08/2014 05:54 AM, Jan Vávra wrote:
>
>>> I think It would be nice to have a function exec_in_background(.) that does it
>>> directly in the php core.
>>
>> PCNTL [1] will allow you to fork a process. It isn't usually included in the
>> standard build of PHP.
>>
>> 1) http://php.net/manual/en/book.pcntl.php
>
> However, PCNTL is not available on Windows at all.
>
If you can run that unix env on windows (used to remember the name but I havent run windows in
years) you could use exec in php and invoke a fork using the "&" shell command so you
would do a "& php phpapp.php"
Tom