winder Posted July 23, 2007 Share Posted July 23, 2007 i have about 10 pages in my site. i started using sessions, so i added in all pages at the very very top <?php session_start(); ?> this worked ok in 9 out of ten of the pages. BUT in one page, i have the error: Cannot send session cache limiter - headers already sent. and i'm wandering...what's so special about this page? It's about 90% the same as all the others. And i'm adding the php code at the very beginning just like in the others. ??? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 23, 2007 Share Posted July 23, 2007 check whitespace any whitespace outside the <?php or ?> will do it including end of document. Quote Link to comment Share on other sites More sharing options...
winder Posted July 23, 2007 Author Share Posted July 23, 2007 <?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> etc ??? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 23, 2007 Share Posted July 23, 2007 Check the end of it that can be part of the issue too. Quote Link to comment Share on other sites More sharing options...
winder Posted July 23, 2007 Author Share Posted July 23, 2007 what do you mean the end of it? it ends like this.... </html>(no whitespace. nothing after that) actualy i tried removing all the other html code leaving only this simple php, and again the same problem...so it had to be sth else...?? Quote Link to comment Share on other sites More sharing options...
redarrow Posted July 23, 2007 Share Posted July 23, 2007 post full page please. Quote Link to comment Share on other sites More sharing options...
winder Posted July 23, 2007 Author Share Posted July 23, 2007 haha there has to be sth magical with this forum ;D. Even though the answers don't solve my problems (till now only 5 posts, i'm sure here i can get help, one of the best forums i have ever visited ), a mystical power makes me look in the right direction.. ok i solved the problem. The problem is that... for all the coding, i use dreamweaver. The code seamed clean BUT in modify->page properties -> title/encoding... except from the encoding (utf8), there is a checkbox that says include Unicode Signature (BOM). I had this ticked by mistake. But it's very odd. The code is exactly the same with this turned on and off. p.s Anyone knows what this BOM is? Quote Link to comment Share on other sites More sharing options...
redarrow Posted July 23, 2007 Share Posted July 23, 2007 dont ever use dreamwever in future for php programming your always get errors ok. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.