1
我使用php-export-data
類爲excel輸出。這個類在我的localhost和godady服務器上工作,但在我的新服務器上不起作用。我該如何解決php-export-data class'header error?
它給出了標題錯誤。喜歡這個:
Warning: Cannot modify header information - headers already sent by (output started at /home/mmm/public_html/head/adminsss/config.php:1) in /home/mmm/public_html/head/adminss/modules/head/class/php-export-data.class.php on line 489 Warning: Cannot modify header information - headers already sent by (output started at /home/mmm/public_html/head/adminsss/config.php:1) in /home/mmm/public_html/head/adminsss/modules/head/class/php-export-data.class.php on line 490<br> Line 489 => header("Content-Type: application/vnd.ms-excel; charset=" . $this->encoding); Line 490 => header("Content-Disposition: inline; filename=\"" . basename($this->filename) . "\"");
- 本地主機的PHP版本5.5.11
- godady PHP版本5.3.24
- 新的服務器PHP版本5.5.23
哪有我解決這個問題?
可能的[如何修復]已經發送的頭文件「PHP中的錯誤」的副本(http://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php) –
謝謝保羅,我讀過那篇文章,但我不明白。但我現在解決這個問題。 – user2246457
在問你的下一個問題之前,請閱讀http://stackoverflow.com/help/how-to-ask。 –