I am currently getting the following error using php:
Warning: session_start() [function.session-start]:
Cannot send session cache limiter - headers already sent
(output started at /home/paramireze/madisonh3.com/calendar.php:1)
in /home/paramireze/madisonh3.com/includes/common.php on line 5
The first line of every file is include common.php
, and the first line of code in common.php
is 'if(!isset($_SESSION)) {session_start();}`.
This error only occurs on calendar.php
and news.php
(you can see the error if you visit http://www.madisonh3.com/calendar.php). All my files are the same, which includes a common.php
. After that, I will write the html tag and include the header from there.
I've read other discussions regarding session_start
and all say to make sure you do not output any html before session_start
. Also, if I am doing something wrong, why is it only happening to two out of my 10 files?