A terribly long response from the file_get_contents
function. I am running the following code
$postdata = http_build_query(array( 'ip' => '' . $_SERVER['REMOTE_ADDR'] . '' )); $opts = array( 'http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata ) ); $context = stream_context_create($opts); $t = microtime(true); $result = file_get_contents($this->engine_domain . 'GeoIP/get_geo.php', false, $context);
I used to receive an answer in an instant, but now I wait 15 seconds. What could be the problem?
traceroute
say from the host on which this script runs to the host on which the service is located? - chernomyrdin