我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

获取元标记不起作用

I have this link http://www.geobytes.com/IpLocator.htm?GetLocation&template=php3.txt&IpAddress=

and return the meta tags

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

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

and other. On page php i tried this

<?php 

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


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


?>

not work and return a white page why?

Try to Use:

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

近期文章

  • PHP-Push:Ow​​ncloud集成
  • 使用implode [duplicate]在sqlite中插入多行
  • 在textarea中处理额外的行
  • WP_Query自定义TAXONOMY循环忽略自定义POST_TYPE
  • PHP / HTML表单数据多页信息传输,图像信息
  • 包括vs Extend用于数据访问
  • 在mysql和php中保留CSS样式
  • 登录不适用于Android中的AsyncTask
  • 通过网络打印800毫米(收据)表(PHP)
  • 使用php比较两个mysql记录集
  • Apache:.htaccess ErrorDocument上升一级?
  • 在PHP的echo中包含php和html
  • php var_export对象 - 忘记在存储之前序列化
  • 先通过最新的对话订购MySQL收件箱?
  • 不按索引显示数组元素
  • Joomla K2 - 列出类别中所有文章的额外字段
  • 在谷歌地图上的弹出窗口中显示图片
  • PHP和mySQLi - 而mysqli_fetch_array没有回显结果
  • 在linux上有没有免费的网络报告程序? [关闭]
  • openX广告服务器未在电子邮件正文中显示横幅广告

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华