复制代码 代码如下:
<?php
$str = file("http://tq.tom.com/china/index.html");
$count = count($str);
for ($i=0;$i<$count;$i++){
$file .= $str[$i];
}
$tomtq = explode("<table width=\"774\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" bgcolor=\"#ABABAB\">",$file);
$tomtq = explode("</table>",$tomtq[1]);
$tomtq= $tomtq[0];
//$tomtq tom天气小偷
?>
天气预报 code来的
[Ctrl+A 全选 注:引入外部Js需再刷新一下页面才能执行]
<?php
$str = file("http://tq.tom.com/china/index.html");
$count = count($str);
for ($i=0;$i<$count;$i++){
$file .= $str[$i];
}
$tomtq = explode("<table width=\"774\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" bgcolor=\"#ABABAB\">",$file);
$tomtq = explode("</table>",$tomtq[1]);
$tomtq= $tomtq[0];
//$tomtq tom天气小偷
?>
天气预报 code来的
[Ctrl+A 全选 注:引入外部Js需再刷新一下页面才能执行]
标签:
个人站长制做网页常用的php代码
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
桃源资源网 Design By www.nqtax.com
暂无“个人站长制做网页常用的php代码”评论...