第一页:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<style type="text/css">
<!--
.STYLE3 {font-size: large}
.STYLE5 {font-size: small}
.STYLE6 {
font-size: 70px;
font-family: "仿宋_GB2312", "楷体_GB2312";
color: #0033CC;
font-weight: bold;
}
.STYLE7 {font-size: 70px; }
-->
</style>
</head><body><div align="center" class="STYLE6">
<p class="STYLE7"></p>
<p class="STYLE3"> </p>
</div>
<div align="center">
<table border="0" width="77%" id="table1">
<tr>
<td>
<p align="center"> </p></td>
<td valign="bottom" style="font-family: 宋体; font-size: 12px"><a style="text-decoration: underline; color: #000088; font-family: 宋体; font-size: 12px" ></a></td>
<form name="googleform" target="_blank" >
<td style="font-family: 宋体; font-size: 12px"><input style="FONT-SIZE: 13pt" size="35" name="Input"
td align="middle" />
<input type="hidden" value="aff-sowang" name="client" />
<input type="hidden" value="GB2312" name="ie" />
<input type="hidden" value="UTF8" name="oe" />
<input type="hidden" value="zh-CN" name="hl" />
<input type="hidden" value="searchbutton3" name="channel" />
<input name="submit" type="submit" style="FONT-SIZE: 11pt; COLOR: #000000" value="搜索查询" />
<a href="http://hi.baidu.com/">高级选项</a> | <a href="http://www.baidu.com/more/">帮助</a> <br />
<br /></td>
</form>
<td width=100><br />
</td>
</tr>
</table>
</div>
<tr><td>
<div align="center">
<div align="center"> </div>
<div>
</form>
</div>
<td vAlign="center" style="font-family: 宋体; font-size: 12px" width="4" bgcolor="#000000" > </td>
<div align="center">
</td>
</div>
</tr>
<div align="center">
</table>
</div>
<p align="center" id=km>
<tr>
</tr>
<tr>
<div align="center" class="STYLE3"><a href="http://www.baidu.com/more/">名山之旅</a> | <a href="http://www.baidu.com/more/">都市之旅</a> | <a href="http://www.baidu.com/more/">秀水之旅</a> | <a href="http://www.baidu.com/more/">怀古之旅</a> | <a href="http://www.baidu.com/more/">民族风俗</a> | <a href="http://www.baidu.com/more/">美食特产</a> | <a href="http://www.baidu.com/more/">红色之旅</a> | <a href="http://www.baidu.com/more/">特色专题
</a></div>
</tr>
<p align="left"><span class="STYLE5"> 【华 北】 <a href="http://www.baidu.com/more/">北京市</a> <a href="http://www.baidu.com/more/">天津市</a> <a href="http://www.baidu.com/more/">河北省</a> <a href="http://www.baidu.com/more/">山西省</a></span>
<p align="left" class="STYLE5"> 【东 北】 <a href="http://www.baidu.com/more/">辽宁省</a> <a href="http://www.baidu.com/more/">吉林省</a> <a href="http://www.baidu.com/more/">黑龙江省
</a>
<p align="left" class="STYLE5"> 【华 东】 <a href="http://www.baidu.com/more/">上海市</a> <a href="http://www.baidu.com/more/">江苏省</a> <a href="http://www.baidu.com/more/">浙江省</a> <a href="http://www.baidu.com/more/">安徽省</a> <a href="http://www.baidu.com/more/">福建省</a> <a href="http://www.baidu.com/more/">江西省</a> <a href="http://www.baidu.com/more/">山东省
</a></p>
<p align="left" class="STYLE5"> 【中 南】 <a href="http://www.baidu.com/more/">河南省</a> <a href="http://www.baidu.com/more/">湖北省</a> <a href="http://www.baidu.com/more/">湖南省</a> <a href="http://www.baidu.com/more/">广东省</a> <a href="http://www.baidu.com/more/">广西壮族自治区</a> <a href="http://www.baidu.com/more/">海南省
</a></p>
<p align="left" class="STYLE5"> 【西 南】 <a href="http://www.baidu.com/more/">重庆市</a> <a href="http://www.baidu.com/more/">四川省</a> <a href="http://www.baidu.com/more/">贵州省</a> <a href="http://www.baidu.com/more/">云南省</a> <a href="http://www.baidu.com/more/">西藏自治区
</a></p>
<p align="left" class="STYLE5"> 【西 北】 <a href="http://www.baidu.com/more/">陕西省</a> <a href="http://www.baidu.com/more/">甘肃省</a> <a href="http://www.baidu.com/more/">青海省</a> <a href="http://www.baidu.com/more/">宁夏回族自治区</a> <a href="http://www.baidu.com/more/">新疆维吾尔自治区
</a></p>
<p align="left" class="STYLE5"> 【港澳台】 <a href="http://www.baidu.com/more/">香港特别行政区</a> <a href="http://www.baidu.com/more/">澳门特别行政区</a> <a href="http://www.baidu.com/more/">台湾省
</a></p>
</body>
</html>
第二页:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body>set_time_limit("600");
//获取搜索关键字
$keyword=trim($_POST["keyword"]);
//检查是否为空
if($keyword=="")
{
echo"您要搜索的关键字不能为空";
exit;//结束程序
}
function listFiles($dir,$keyword,&$array)
{
$handle=opendir($dir);
while(false!==($file=readdir($handle)))
{
if($file!="."&&$file!="..")
{
if(is_dir("$dir/$file"))
{
listFiles("$dir/$file",$keyword,$array);
}
else
{
$data=fread(fopen("$dir/$file","r"),filesize("$dir/$file"));
if(eregi("<body([^>]+)></body>(.+)",$data,$b))
{
$body=strip_tags($b["2"]);
}
else{
$body=strip_tags($data);
}
if($file!="")
{
if(eregi("$keyword",$body))
{
if(eregi("<title>(.+)</title>",$data,$m))
{
$title=$m["1"];
}
else
{
$title="没有标题";
}
$array[]="$dir/$file $title";
}
}
}
}
}
}<?>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<style type="text/css">
<!--
.STYLE3 {font-size: large}
.STYLE5 {font-size: small}
.STYLE6 {
font-size: 70px;
font-family: "仿宋_GB2312", "楷体_GB2312";
color: #0033CC;
font-weight: bold;
}
.STYLE7 {font-size: 70px; }
-->
</style>
</head><body><div align="center" class="STYLE6">
<p class="STYLE7"></p>
<p class="STYLE3"> </p>
</div>
<div align="center">
<table border="0" width="77%" id="table1">
<tr>
<td>
<p align="center"> </p></td>
<td valign="bottom" style="font-family: 宋体; font-size: 12px"><a style="text-decoration: underline; color: #000088; font-family: 宋体; font-size: 12px" ></a></td>
<form name="googleform" target="_blank" >
<td style="font-family: 宋体; font-size: 12px"><input style="FONT-SIZE: 13pt" size="35" name="Input"
td align="middle" />
<input type="hidden" value="aff-sowang" name="client" />
<input type="hidden" value="GB2312" name="ie" />
<input type="hidden" value="UTF8" name="oe" />
<input type="hidden" value="zh-CN" name="hl" />
<input type="hidden" value="searchbutton3" name="channel" />
<input name="submit" type="submit" style="FONT-SIZE: 11pt; COLOR: #000000" value="搜索查询" />
<a href="http://hi.baidu.com/">高级选项</a> | <a href="http://www.baidu.com/more/">帮助</a> <br />
<br /></td>
</form>
<td width=100><br />
</td>
</tr>
</table>
</div>
<tr><td>
<div align="center">
<div align="center"> </div>
<div>
</form>
</div>
<td vAlign="center" style="font-family: 宋体; font-size: 12px" width="4" bgcolor="#000000" > </td>
<div align="center">
</td>
</div>
</tr>
<div align="center">
</table>
</div>
<p align="center" id=km>
<tr>
</tr>
<tr>
<div align="center" class="STYLE3"><a href="http://www.baidu.com/more/">名山之旅</a> | <a href="http://www.baidu.com/more/">都市之旅</a> | <a href="http://www.baidu.com/more/">秀水之旅</a> | <a href="http://www.baidu.com/more/">怀古之旅</a> | <a href="http://www.baidu.com/more/">民族风俗</a> | <a href="http://www.baidu.com/more/">美食特产</a> | <a href="http://www.baidu.com/more/">红色之旅</a> | <a href="http://www.baidu.com/more/">特色专题
</a></div>
</tr>
<p align="left"><span class="STYLE5"> 【华 北】 <a href="http://www.baidu.com/more/">北京市</a> <a href="http://www.baidu.com/more/">天津市</a> <a href="http://www.baidu.com/more/">河北省</a> <a href="http://www.baidu.com/more/">山西省</a></span>
<p align="left" class="STYLE5"> 【东 北】 <a href="http://www.baidu.com/more/">辽宁省</a> <a href="http://www.baidu.com/more/">吉林省</a> <a href="http://www.baidu.com/more/">黑龙江省
</a>
<p align="left" class="STYLE5"> 【华 东】 <a href="http://www.baidu.com/more/">上海市</a> <a href="http://www.baidu.com/more/">江苏省</a> <a href="http://www.baidu.com/more/">浙江省</a> <a href="http://www.baidu.com/more/">安徽省</a> <a href="http://www.baidu.com/more/">福建省</a> <a href="http://www.baidu.com/more/">江西省</a> <a href="http://www.baidu.com/more/">山东省
</a></p>
<p align="left" class="STYLE5"> 【中 南】 <a href="http://www.baidu.com/more/">河南省</a> <a href="http://www.baidu.com/more/">湖北省</a> <a href="http://www.baidu.com/more/">湖南省</a> <a href="http://www.baidu.com/more/">广东省</a> <a href="http://www.baidu.com/more/">广西壮族自治区</a> <a href="http://www.baidu.com/more/">海南省
</a></p>
<p align="left" class="STYLE5"> 【西 南】 <a href="http://www.baidu.com/more/">重庆市</a> <a href="http://www.baidu.com/more/">四川省</a> <a href="http://www.baidu.com/more/">贵州省</a> <a href="http://www.baidu.com/more/">云南省</a> <a href="http://www.baidu.com/more/">西藏自治区
</a></p>
<p align="left" class="STYLE5"> 【西 北】 <a href="http://www.baidu.com/more/">陕西省</a> <a href="http://www.baidu.com/more/">甘肃省</a> <a href="http://www.baidu.com/more/">青海省</a> <a href="http://www.baidu.com/more/">宁夏回族自治区</a> <a href="http://www.baidu.com/more/">新疆维吾尔自治区
</a></p>
<p align="left" class="STYLE5"> 【港澳台】 <a href="http://www.baidu.com/more/">香港特别行政区</a> <a href="http://www.baidu.com/more/">澳门特别行政区</a> <a href="http://www.baidu.com/more/">台湾省
</a></p>
</body>
</html>
第二页:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body>set_time_limit("600");
//获取搜索关键字
$keyword=trim($_POST["keyword"]);
//检查是否为空
if($keyword=="")
{
echo"您要搜索的关键字不能为空";
exit;//结束程序
}
function listFiles($dir,$keyword,&$array)
{
$handle=opendir($dir);
while(false!==($file=readdir($handle)))
{
if($file!="."&&$file!="..")
{
if(is_dir("$dir/$file"))
{
listFiles("$dir/$file",$keyword,$array);
}
else
{
$data=fread(fopen("$dir/$file","r"),filesize("$dir/$file"));
if(eregi("<body([^>]+)></body>(.+)",$data,$b))
{
$body=strip_tags($b["2"]);
}
else{
$body=strip_tags($data);
}
if($file!="")
{
if(eregi("$keyword",$body))
{
if(eregi("<title>(.+)</title>",$data,$m))
{
$title=$m["1"];
}
else
{
$title="没有标题";
}
$array[]="$dir/$file $title";
}
}
}
}
}
}<?>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货