Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How to run a similar php script concurrently at multiple browser?
Old 09-07-2005, 12:33 AM How to run a similar php script concurrently at multiple browser?
Novice Talker

Posts: 5
Trades: 0
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.
shaowei is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-07-2005, 06:30 AM
shivaji's Avatar
Ultra Talker

Posts: 318
Trades: 0
maybe you can create one more same script with different name. in that case two browser will work with e.g. somescript.php and second two with somescript2.php
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Reply     « Reply to How to run a similar php script concurrently at multiple browser?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11091 seconds with 12 queries