1 頁 (共 1 頁)

[問題]Virus Information Center

發表於 : 2004-02-08 22:12
神僕
問題外掛:Virus Information Center V0.2.1
參考連結:http://phpbb.klein-jensen.dk/viewforum.php?f=7
使用版本:phpbb plus ((暫時性,因暫時上不到,故在此問,若是不可,請del這個post)
網站位置:http://www.hkvalue.net/forum/virinfocenter_demo.php
狀況描述:

代碼: 選擇全部

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site94/fst/var/www/html/forum/virinfocenter.php:2) in /home/virtual/site94/fst/var/www/html/forum/includes/page_header.php on line 795 

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site94/fst/var/www/html/forum/virinfocenter.php:2) in /home/virtual/site94/fst/var/www/html/forum/includes/page_header.php on line 797 

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site94/fst/var/www/html/forum/virinfocenter.php:2) in /home/virtual/site94/fst/var/www/html/forum/includes/page_header.php on line 798 


補充:
我曾試過將這三行del. 便可以正常運作,但由於不明白這三行是什麼東西,故回到原來,請各位出手吧 :mrgreen:

發表於 : 2004-02-08 22:16
aiken
方便貼一下 page_header.php line 790~800 嗎?

發表於 : 2004-02-09 01:11
神僕
明白!!立刻做! :mrgreen:

代碼: 選擇全部

// Add no-cache control for cookies if they are set
//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : '';

// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
{
	header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
	header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');
這是 Line 784 - 799