How to limit http response time in php

I’m using some sites to detect my site visitor’s country. I mean like this

$ip = $_SERVER['REMOTE_ADDR'];  
$url1 = ''.$ip;
$url2 = ''.$ip;

Sometimes sites like sourgeforge taking too much time to load.

So can anyone tell how to limit the http response time.?

if url1 is down or not responded in x seconds then move to url2,url3,etc

Leave a Reply


Hire Me
Follow Me!
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.