Re: run a process in background on Windows

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

 



8 okt 2014 kl. 18:08 skrev TR Shaw <tshaw@xxxxxxxx>:

> 
> 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”
> 

Cygwin
https://www.cygwin.com

/frank

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


-- 
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