Forum Moderators: coopster

Message Too Old, No Replies

How to run a similar php script concurrently at multiple browser?

         

shaowei

3:31 am on Sep 7, 2005 (gmt 0)

10+ Year Member



hi all

i need help. I am currently doing a uptime manager to check for the uptime of all the sites in my database.

I'm using a php script to check the uptime using get_headers() and after getting the status, i will update the database with the status. there are too many sites in my database (1500 records) and it will take forever to finish the checking using one single php file. so what i do is split the 1500 records into 4 sets and run a similar php scripts in 4 browsers one time. e.g. (1st browser to check uptime for record 1 - 400, 2nd browser for 401 -800, 3rd browser for record 801 - 1200, 4th for 1201 - 1500) all this at the same time so as to minimise the total time needed to finish all sites.

The problem is though i open the 4 browsers at one go, only 2 of them seems to be processing, the rest of the browsers will queue and wait till the first 2 complete their processing, then start to process. How can I make it in such a way that all 4 browers will process the script concurrently without any queueing?

Does it involve the mysql settings or php settings? help! i'm very lost.

King_Kong

12:20 pm on Sep 7, 2005 (gmt 0)

10+ Year Member



You run this manually? How do you expect to get a good idea of uptime if you do it that way.

You should do an update checker as a cron job run say every 30mins.