schimpfk Posted June 14, 2013 Posted June 14, 2013 I'm working on a login script but once I publish our site it says that there was an error on the following code: <?php//We start sessions>session_start(); Please help!
schimpfk Posted June 14, 2013 Author Posted June 14, 2013 I'm working on a login script but once I publish our site it says that there was an error on the following code: <?php//We start sessions>session_start();?> Errors: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/kevinrox/public_html/register.php:3) in /home/kevinrox/public_html/config.php on line 3 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/kevinrox/public_html/register.php:3) in /home/kevinrox/public_html/config.php on line 3/****************************************************** ------------------Required Configuration--------------- Please edit the following variables so the members area can work correctly. ******************************************************/ //We log to the DataBase mysql_connect('localhost', 'kevinrox_urban', ***Password***'); mysql_select_db('database'); //Webmaster Email $mail_webmaster = '****E-MAIL****'; //Top site root URL $url_root = '/index.php'; /****************************************************** -----------------Optional Configuration---------------- ******************************************************/ //Home page file name $url_home = 'index.php'; //Design Name $design = 'default'; ?> I took the E-mail and password out in the screen capture, too!Please help!
Ice IT Support Posted June 14, 2013 Posted June 14, 2013 Topics merged. The session_start() command must come before your <html> tag.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now