Jump to content

[SOLVED] header sent error


winder

Recommended Posts

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.

 

???

Link to comment
https://forums.phpfreaks.com/topic/61430-solved-header-sent-error/
Share on other sites

<?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

 

???

haha there has to be sth magical with this forum ;D ;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  ;D ), a mystical power makes me look in the right direction.. ;D

 

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.