Fehm
08-02-2009, 08:51 PM
Hey :)
I'd like to say sorry to begin with, because im learning PHP, and all i keep doing is come back here for advice, so i'd be more than understanding if you lot didnt help me anymore!
My problem now is:
Warning: session_start() [function.session-start (http://clubpixels.co.uk/callum/function.session-start)]: Cannot send session cookie - headers already sent by (output started at /home/clubpixe/public_html/callum/index.php:10) in /home/clubpixe/public_html/callum/index.php on line 20
Warning: session_start() [function.session-start (http://clubpixels.co.uk/callum/function.session-start)]: Cannot send session cache limiter - headers already sent (output started at /home/clubpixe/public_html/callum/index.php:10) in /home/clubpixe/public_html/callum/index.php on line 20
that comes up on my log in form
Now the code it mentions is this:
<?php
session_start();
include("config.php");
if(isset($_SESSION['logged_in'])) {
}
And i just dont know what i've done wrong.... Knowing me it'll be a very silly mistake... and if its not too much to ask, If you do try and help can you tell me how you came to that conclusion so i can learn rather than copy and paste??
Thank yooo :)
Callum
I'd like to say sorry to begin with, because im learning PHP, and all i keep doing is come back here for advice, so i'd be more than understanding if you lot didnt help me anymore!
My problem now is:
Warning: session_start() [function.session-start (http://clubpixels.co.uk/callum/function.session-start)]: Cannot send session cookie - headers already sent by (output started at /home/clubpixe/public_html/callum/index.php:10) in /home/clubpixe/public_html/callum/index.php on line 20
Warning: session_start() [function.session-start (http://clubpixels.co.uk/callum/function.session-start)]: Cannot send session cache limiter - headers already sent (output started at /home/clubpixe/public_html/callum/index.php:10) in /home/clubpixe/public_html/callum/index.php on line 20
that comes up on my log in form
Now the code it mentions is this:
<?php
session_start();
include("config.php");
if(isset($_SESSION['logged_in'])) {
}
And i just dont know what i've done wrong.... Knowing me it'll be a very silly mistake... and if its not too much to ask, If you do try and help can you tell me how you came to that conclusion so i can learn rather than copy and paste??
Thank yooo :)
Callum