my script dont get any results(blank page) and i dont understand why I've used this script on other websites and work
$url = 'http://ip-score.com/checkip/207.224.78.193';
libxml_use_internal_errors(true);
$html = file_get_contents($url);
$dom = new DOMDocument();
$dom->loadHTML($html);
$xpath = new DOMXPath($dom);
$my_xpath_query = "//div[@id='MaxMind']";
$result_rows = $xpath->query($my_xpath_query);
foreach ($result_rows as $result_object){
echo $result_object->childNodes->item(0)->nodeValue;
}
i've aspect to get this results:
207.224.78.193 United States
State: Minnesota
City: Minneapolis
ZIP: 55407
Hostname: 207-224-78-193.mpls.qwest.net, Whois
Organization: CenturyLink, History
ISP: CenturyLink
Mail Server: N\A
IP range: 207.224.71.0 - 207.224.97.191
Current region time: Thu 12th Mar 2015 - 02:52:15 GMT: -05:00
Region timezone: America/Chicago
i want to get all info from url(state,city,zip...) but i can not get it one by one so i decise to get all then split it into var