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
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php