开发者

captcha error Warning: session_start() [function.session-start]:Cannot send session cache limiter - headers already sent (output started at [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\program\sanweetha\quotation.php:280) in C:\xampp\htdocs\program\sanwe开发者_运维技巧etha\php\captcha demo\captcha_demo.php on line 1


This error indicates that you are attempting to use the function session_start() at some point after you have started to send output to the user. Nothing can be output to the user before you use the function, not even whitespace. Check that your script begins with <?php and that you are not outputting inline HTML anywhere before the function call, nor using echo or similar.


you may have attempted to send a HTTP header to the browser after the script has generated a line of output. This ain't good as the PHP manual succinctly puts it, "...you can not normally send headers to the browser after data has already been sent...".

So either make sure to use http header before any output generated

OR

One can use ob_start(); at the beginning of the script, this will put all generated output to the buffer thus output of screen will not seen

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜