0
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent

error even though the first line of my file looks like:

<?php session_start();

This error shows only in wamp server not show in xampp and easyphp. pls help

Reese Moore
  • 11,524
  • 3
  • 24
  • 32
ychampac
  • 1
  • 1
  • 4
    Please [search a bit](http://stackoverflow.com/search?q=%5Bphp%5D+headers+already+sent), `headers already sent` is about the most common PHP problem here. Most likely your problem are [BOMs](http://stackoverflow.com/questions/920330/php-script-cant-send-headers-because-headers-have-already-been-sent-but-are-cha). – deceze Nov 28 '10 at 06:34

1 Answers1

0

Up on top of your script, before includes etc. put this:

ob_start("ob_gzhandler");

You have to make sure nothing gets sent to the browser before session_start(); Including white space.

Ramin Rezazadeh
  • 326
  • 1
  • 12