Awful long response from the
file_get_contentsfunction. I perform 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);
earlier for a moment received an answer, and now I am waiting for 15 seconds. What could be the problem?
Answer 1, Authority 100%
Maybe it would be easier to use the local database geoip ?
If there are requests for other domains, then it’s exactly in them. Maybe there a ah pi address changed, or do you have something with the Internet?