php sessions, different problem
Posted: Thu Oct 05, 2006 2:58 pm
Hi guys!
I have a problem with php sessions, I always get the warning.
And I do NOT have blank space in the begining of the file as it works perfectlz on my php instalation at home but when I upload to the server I get this...
Headers are obviouslz sent but I dont know where...
This is the incriminated piece of code
help me please 
I have a problem with php sessions, I always get the
Code: Select all
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at index.php:1) in /.....index.php on line 10
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /..../index.php on line 10And I do NOT have blank space in the begining of the file as it works perfectlz on my php instalation at home but when I upload to the server I get this...
Headers are obviouslz sent but I dont know where...
This is the incriminated piece of code
Code: Select all
<?php
// define debug level, 0 for no debugging, 1 for debugging enabled
define("DEBUG", 0);
// insert required scripts/libaries
require_once("libs/smarty/Smarty.class.php");
require_once("config.php");
session_start();