FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Asynchronous execution of PHP file
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Asynchronous execution of PHP file [message #179069] Mon, 10 September 2012 09:53 Go to next message
Supriya is currently offline  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 Go to previous messageGo to next message
Peter H. Coffin is currently offline  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 Go to previous messageGo to next message
Salvatore is currently offline  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 Go to previous message
Goran is currently offline  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...
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Pls help with output of csv file to browser?
Next Topic: button to send an email
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 07:42:01 GMT 2024

Total time taken to generate the page: 0.02673 seconds