2012伦敦奥运会奖牌榜代码php
2012伦敦奥运会奖牌榜代码php 使用教程: a href=http://www.tongqiong.com/read.php?tid-94.html rel=nofollowhttp://www.tongqiong.com/read.php?tid-94.html/a
2012伦敦奥运会奖牌榜代码php 使用教程:
http://www.tongqiong.com/read.php?tid-94.html
<?php define('SINA_SAE', '0'); //是否启用新浪SAE平台1为使用0为不使用 $ayurl="http://2012.titan24.com/medal.html"; $content=fcontents($ayurl); preg_match_all('|<div class=\"box bdr1\">(.*)</table>|isU',$content,$table); echo ' <html lang="zh-CN" xml:lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>奥运奖牌榜-2012伦敦奥运会-同穷论坛</title> <meta name="description" content="同穷论坛提供最新,最准确,最专业,最权威的2012伦敦奥运会奖牌榜。" /> <meta name="keywords" content="2012伦敦奥运会,奖牌榜,金牌榜,中美争霸,同穷论坛" /> <style> .time {height: 24px;padding: 10px;} .fR {float: right;}.fL {float: left;} table.ctab {font-family: Arial,Helvetica,sans-serif;width: 750px;} table {border-collapse: collapse;border-spacing: 0;} table.ctab th {background: none repeat scroll 0 0 #F1F3F4;color: #0C48A0;font-size: 14px;font-weight: bold;height: 28px;text-align: center;} table.ctab td {color: #000000;font-size: 14px;height: 28px;line-height: 28px;text-align: center;} table.ctab td.na, table.ctab th.na {padding-left: 16px;text-align: left;} table.ctab td.red {color: #DD0000;} table.ctab td.blue {color: #00509C;} </style>'.$table[1][0].'</table> <div align="center"><a href="http://www.tongqiong.com">同穷论坛</a></div> '; function fcontents($a){//获取内容 if(SINA_SAE){ $f = new SaeFetchurl(); $content = $f->fetch($a); if($f->errno() == 0) $r=$content; else $r=$f->errmsg(); }else{$r=@file_get_contents($a);} return $r; }?> 同穷论坛 www.tongqiong.com 祝中国代表团取得好成绩!
- 上一篇:php获取某网站的百度快照日期
- 下一篇:正则验证输入方法集合,带有防注入性质
精彩图集
精彩文章