亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Warning:: No error (errno 0) in?

Warning:: No error (errno 0) in?

PHP
絕地無雙 2022-08-05 10:06:53
Warning: chdir() [function.chdir]: No error (errno 0) in E:\PHPnow\htdocs\web\html\inc\zip.php on line 13Warning: Cannot modify header information - headers already sent by (output started at E:\PHPnow\htdocs\web\html\inc\zip.php:13) in E:\PHPnow\htdocs\web\html\inc\zip.php on line 15Warning: Cannot modify header information - headers already sent by (output started at E:\PHPnow\htdocs\web\html\inc\zip.php:13) in E:\PHPnow\htdocs\web\html\inc\zip.php on line 16Warning: Cannot modify header information - headers already sent by (output started at E:\PHPnow\htdocs\web\html\inc\zip.php:13) in E:\PHPnow\htdocs\web\html\inc\zip.php on line 17Warning: Cannot modify header information - headers already sent by (output started at E:\PHPnow\htdocs\web\html\inc\zip.php:13) in E:\PHPnow\htdocs\web\html\inc\zip.php on line 18Warning: Cannot modify header information - headers already sent by (output started at E:\PHPnow\htdocs\web\html\inc\zip.php:13) in E:\PHPnow\htdocs\web\html\inc\zip.php on line 19PK
查看完整描述

1 回答

?
BIG陽

TA貢獻1859條經驗 獲得超6個贊

Warning 在PHP里屬于比較輕的錯誤提示,通常不會嚴重影響程序的正常運行。

Warning: chdir() 這個警告提示No error,那么可能是對于chdir() 這個函數,服務器端權限安全設置導致的。

Warning: Cannot modify header information

這種警告在PHP里比較常見,原因也有多樣,解決辦法:

1. 檢查有<?php ... ?> 前面沒有空白行,特別是include或者require的文件。不少問題是這些空白行導致的。

2. 在header后加上exit(); 


header ("Location: xxx");exit();

3. 用Javascrīpt來解決:


<? echo "<scrīpt> self.location( file.php );</scrīpt>"; ?>

4. 用輸出緩存來解決:


<?php ob_start(); ?>... HTML codes ...<?php... PHP codes ...header ("Location: ....");ob_end_flush();?>

5. 開啟php.ini中的


output_buffering = On




查看完整回答
反對 回復 2022-08-08
  • 1 回答
  • 0 關注
  • 147 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號