schimpfk Posted June 14, 2013 Share 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! Quote Link to comment Share on other sites More sharing options...
schimpfk Posted June 14, 2013 Author Share 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! Quote Link to comment Share on other sites More sharing options...
Ice IT Support Posted June 14, 2013 Share Posted June 14, 2013 Topics merged. The session_start() command must come before your <html> tag. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.