I'm totally confused by this and hoping one of you can solve it for me.
I have the following which basically is running a script that checks if an IP is in a mysql db and then echo's out the results of that script which will be "yes" if it's there or "no" if not. I've changed actual site names but the point is that it doesn't work on one server I have, but it does work on the other. On the one where it does NOT work, it takes way too long and returns just a blank page. The one that does work just immediately returns yes or no based on whether the IP is there or not.
Curl is enabled on both servers and actually, both have the same version of PHP 4.4.8 I believe. Any suggestions? I am missing or enabling something on the bad server that is causing this, but I'm too damn ignorant to know what is.
I GREATLY appreciate any help you guys might offer.
$visitor = $_SERVER['REMOTE_ADDR'];
$site_url = $url1. "?ip=" . $visitor;
$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $site_url);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$f1 = ob_get_contents();