Asynchronous execution of PHP file [message #179069] |
Mon, 10 September 2012 09:53 |
Supriya
Messages: 2 Registered: August 2012
Karma: 0
|
Junior Member |
|
|
Hii All,
I m working on WAMP and need to execute a PHP file Asynchonously from another PHP file inside a loop. How to do it?
Please help.
Thanks
|
|
|
Re: Asynchronous execution of PHP file [message #179072 is a reply to message #179069] |
Mon, 10 September 2012 13:32 |
Peter H. Coffin
Messages: 245 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On Mon, 10 Sep 2012 02:53:34 -0700 (PDT), Supriya wrote:
> Hii All,
> I m working on WAMP and need to execute a PHP file Asynchonously from another PHP file inside a loop. How to do it?
> Please help.
> Thanks
30 seconds with Google got
http://stackoverflow.com/questions/2458005/forking-in-php-on-windows
--
20. Despite its proven stress-relieving effect, I will not indulge in
maniacal laughter. When so occupied, it's too easy to miss
unexpected developments that a more attentive individual could
adjust to accordingly. --Peter Anspach's Evil Overlord list
|
|
|
Re: Asynchronous execution of PHP file [message #179073 is a reply to message #179069] |
Mon, 10 September 2012 13:57 |
Salvatore
Messages: 38 Registered: September 2012
Karma: 0
|
Member |
|
|
On 2012-09-10, Supriya <singla(dot)supriya88(at)gmail(dot)com> wrote:
> Hii All,
> I m working on WAMP and need to execute a PHP file Asynchonously from another PHP file inside a loop. How to do it?
> Please help.
> Thanks
You'll need a Windows-specific way of executing a PHP file in the
background. Here's an example:
<?php
pclose(popen('start /B C:\\php\\php-win.exe C:\\Fullpath\\Script.php', 'r'));
?>
--
Blah blah bleh...
GCS/CM d(-)@>-- s+:- !a C++$ UBL++++$ L+$ W+++$ w M++ Y++ b++
|
|
|
Re: Asynchronous execution of PHP file [message #179290 is a reply to message #179069] |
Tue, 02 October 2012 06:20 |
Goran
Messages: 38 Registered: January 2011
Karma: 0
|
Member |
|
|
On 10.9.2012 11:53, Supriya wrote:
> Hii All,
> I m working on WAMP and need to execute a PHP file Asynchonously from another PHP file inside a loop. How to do it?
> Please help.
> Thanks
Gearman would be the right way...
|
|
|