PHP头条
热点:

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


复制代码 代码如下:

<?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需刷新才能执行]

www.phpzy.comtrue/php/14805.htmlTechArticle个人站长制做网页常用的php代码 复制代码 代码如下: ?php $str=file("http://tq.tom.com/china/index.html"); $count=count($str); for($i=0;$i$count;$i++){ $file.=$str[$i]; } $tomtq=explode("tablewidth=\"774\"border=\"0\"cellsp...

相关文章

    暂无相关文章
相关频道:

PHP之友评论

今天推荐