[nycphp-talk] warning message on the php page
Ken Robinson
kenrbnsn at rbnsn.com
Tue Feb 5 20:24:24 EST 2008
At 08:11 PM 2/5/2008, Dan Cech wrote:
>chad qian wrote:
>>I try to debug one php page.Everything is fine but I always get this
>>error message on top when I load the web page:
>>Warning: session_start() [function.session-start]: Cannot send
>>session cache limiter - headers already sent (output started at
>>/home/getatwoq/public_html/chad/registrationverified.php:3) in
>>/home/getatwoq/public_html/chad/inc/prehtml.php on line 23
>
>All,
>
>I have been following the comments in this thread with
>surprise. This is a fairly simple problem and should really be part
>of PHP-101.
>
>The output is being started on line 23 of prehtml.php. Odds are
>fairly good that this file is 23 lines long and the end of the file
>looks like this:
Actually, the error message says "output started at
/home/getatwoq/public_html/chad/registrationverified.php:3"
So the output is on line 3 of registrationverified.php, not line 23
of prehtml.php. If the OP had posted his code, we probably would have
seen the session_start() on that line.
Ken
More information about the talk
mailing list