0

我有这个链接http://www.geobytes.com/IpLocator.htm?GetLocation&template=php3.txt&IpAddress=

并返回元标记

<meta name="known" content="true">

<meta name="internet" content="EN">

和别的。在页面 php 我试过这个

<?php 

$tags = get_meta_tags('http://www.geobytes.com/IpLocator.htm?GetLocation&template=php3.txt&IpAddress=');


print $tags['city'];  // city name


?>

不起作用并返回白页,为什么?

4

1 回答 1

0

尝试使用:

print_r(
   get_meta_tags("http://www.geobytes.com/IpLocator.htm?GetLocation&template=php3.txt&IpAddress=") 
);
于 2013-05-20T15:10:17.770 回答