1 頁 (共 1 頁)

[問題] 架站後出現錯誤~

發表於 : 2005-01-13 02:32
寒冰軒
今天看到[分享]savefile免費150MB空間php+mysql這篇申請教學\r
成功的安裝好論壇
但是\r
在首頁上方會出現\r

代碼: 選擇全部

Warning: ob_start() has been disabled for security reasons in /home/hngcjydw/public_html/phpbb2/includes/page_header.php on line 45

Warning: Cannot modify header information - headers already sent by (output started at /home/hngcjydw/public_html/phpbb2/includes/page_header.php:45) in /home/hngcjydw/public_html/phpbb2/includes/page_header.php on line 477

Warning: Cannot modify header information - headers already sent by (output started at /home/hngcjydw/public_html/phpbb2/includes/page_header.php:45) in /home/hngcjydw/public_html/phpbb2/includes/page_header.php on line 479

Warning: Cannot modify header information - headers already sent by (output started at /home/hngcjydw/public_html/phpbb2/includes/page_header.php:45) in /home/hngcjydw/public_html/phpbb2/includes/page_header.php on line 480 
而在後台中也會出現\r

代碼: 選擇全部

Warning: ob_start() has been disabled for security reasons in /home/hngcjydw/public_html/phpbb2/admin/page_header_admin.php on line 44 
找尋相關文章也有試著修改上傳\r
但是問題仍然還在\r
請問有大大知道我的問題應該如何解決嗎?

發表於 : 2005-01-13 05:27
神川小羽
我想可能是因為免費空間的廣告的關係吧 header函數有一個使用上的限制\r
就是一定要再放在任何輸出之前,試試看打開 includes/page_header.php
找到\r

代碼: 選擇全部

			if ( extension_loaded('zlib') )
			{
				$do_gzip_compress = TRUE;
				ob_start();
				ob_implicit_flush(0);

				header('Content-Encoding: gzip');
			}
內部的

代碼: 選擇全部

				header('Content-Encoding: gzip');
前面加上//也就是變成

代碼: 選擇全部

				//header('Content-Encoding: gzip');
不過我不知道這樣可行不可行耶...汗,你試試看先,如果可以的話在改page_header_admin.php
或者是把整個判斷都註解起來看看@@" (偶先說唷 ...這個我很不肯定會不會有問題)

發表於 : 2005-01-13 19:54
寒冰軒
謝謝小羽的回答
^^"
但很可惜
問題還是存在