Running multiple instances of a PHP script
Posted: Fri Aug 19, 2005 3:00 pm
Hi
I have a script - run.php which does some long running task - this takes hours to complete.
I tried to open a new window with run.php but it doesnt seem to start until the other one is finished. Instead - if I make a copy of it say run1.php it works fine - obviously - because they are 2 different scripts. But the code reads/writes data to a MySQL database which takes places once in a few mins - the mysql access part is not resource intensive.
Is there any way for me to get run.php running simultaneously in say 10 browser windows ?
Not running on this localhost - running this on the server - in the form of a url.
Thanks
I have a script - run.php which does some long running task - this takes hours to complete.
I tried to open a new window with run.php but it doesnt seem to start until the other one is finished. Instead - if I make a copy of it say run1.php it works fine - obviously - because they are 2 different scripts. But the code reads/writes data to a MySQL database which takes places once in a few mins - the mysql access part is not resource intensive.
Is there any way for me to get run.php running simultaneously in say 10 browser windows ?
Not running on this localhost - running this on the server - in the form of a url.
Thanks