Jan 31, 2013 01:50 PM
(This post was last modified: Jan 31, 2013 01:55 PM by Sir Paul McCartney.)
Hi, I'm currently using
at the top of my file,
but after moving host, it's starting causing some errors.
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/royalbat/public_html/explore.php:22) in /home/royalbat/public_html/explore.php on line 23
If I removed the doctype line the session_start(); stops causing an error, but it messes up how the HTML is parsed on the page and it doesn't display properly.
Any ideas on how I fix this? I really need a fix for this soon, thanks!
EDIT:
Turns out,
Like editing header information after text has been sent, you can't do it with session_start() either,
I simply put the session_start before the <!DOCTYPE> and it worked perfectly!
Code
print "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>";but after moving host, it's starting causing some errors.
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/royalbat/public_html/explore.php:22) in /home/royalbat/public_html/explore.php on line 23
If I removed the doctype line the session_start(); stops causing an error, but it messes up how the HTML is parsed on the page and it doesn't display properly.
Any ideas on how I fix this? I really need a fix for this soon, thanks!
EDIT:
Turns out,
Like editing header information after text has been sent, you can't do it with session_start() either,
I simply put the session_start before the <!DOCTYPE> and it worked perfectly!

