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

 

???

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.