页面导航: 首页网络编程PHP编程php技巧 → 正文内容

个人站长制做网页常用的php代码

发布:dxy 字体:[增加 减小] 类型:转载

<?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 全选 提示:你可先修改部分代码,再按运行]

浏览次数:载入中... 打印本文关闭本文返回首页

文章评论

共有 位脚本之家网友发表了评论我来说两句

同 类 文 章
最 近 更 新
热 点 排 行