Header erros
Posted: Wed Jul 04, 2007 11:04 am
Sure, its probably one of the most asked questions but i can't find any information on the net about it.
I setup a username and login that creates a session called username.
session_start();
if (isset($_SESSION['username'])) { echo "yay"; } else { echo "boo"; }
Is what i'm using now to test it and i'm getting headers already sent error.
Can someone either link me an indepth detail about what this means and how i should post this code, or tell me?
Thanks
O yeah, i put this at the very top of my include file so nothing should be in front of it.
Why would i still be getting this error?
I setup a username and login that creates a session called username.
session_start();
if (isset($_SESSION['username'])) { echo "yay"; } else { echo "boo"; }
Is what i'm using now to test it and i'm getting headers already sent error.
Can someone either link me an indepth detail about what this means and how i should post this code, or tell me?
Thanks
O yeah, i put this at the very top of my include file so nothing should be in front of it.
Why would i still be getting this error?