猿问

Warning:: No error (errno 0) in?

Warning: chdir() [function.chdir]: No error (errno 0) in E:\PHPnow\htdocs\web\html\inc\zip.php on line 13

Warning: 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 15

Warning: 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 16

Warning: 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 17

Warning: 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 18

Warning: 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 19
PK

绝地无双
浏览 173回答 1
1回答

BIG阳

Warning 在PHP里属于比较轻的错误提示,通常不会严重影响程序的正常运行。Warning: chdir() 这个警告提示No error,那么可能是对于chdir() 这个函数,服务器端权限安全设置导致的。Warning: Cannot modify header information这种警告在PHP里比较常见,原因也有多样,解决办法:1. 检查有<?php ... ?> 前面没有空白行,特别是include或者require的文件。不少问题是这些空白行导致的。2. 在header后加上exit();&nbsp;header&nbsp;("Location:&nbsp;xxx");exit();3. 用Javascrīpt来解决:<?&nbsp;echo&nbsp;"<scrīpt>&nbsp;self.location(&nbsp;file.php&nbsp;);</scrīpt>";&nbsp;?>4. 用输出缓存来解决:<?php&nbsp;ob_start();&nbsp;?>...&nbsp;HTML&nbsp;codes&nbsp;...<?php...&nbsp;PHP&nbsp;codes&nbsp;...header&nbsp;("Location:&nbsp;....");ob_end_flush();?>5.&nbsp;开启php.ini中的output_buffering&nbsp;=&nbsp;On
随时随地看视频慕课网APP
我要回答