Ungerbla Posted January 21, 2010 Share Posted January 21, 2010 hi iv been using an old login script but it gives me some strange errors. iv been able to figure them all out, but not this one: // Check if session is not registered , redirect back to main page. // Put this code in first line of web page. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/Marcus/torrent/login_success.php:3) in /var/www/Marcus/torrent/login_success.php on line 4 Login Successful Link to comment https://forums.phpfreaks.com/topic/189358-what-am-i-doing-wrong/ Share on other sites More sharing options...
Ungerbla Posted January 21, 2010 Author Share Posted January 21, 2010 sorry about the dubble posting, but i didnt know how to remove the text above. i got another error now. on the same page. " Parse error: syntax error, unexpected T_STRING in /var/www/Marcus/torrent/kolla_inloggning.php on line 4 " Link to comment https://forums.phpfreaks.com/topic/189358-what-am-i-doing-wrong/#findComment-999592 Share on other sites More sharing options...
shinichi_nguyen Posted January 21, 2010 Share Posted January 21, 2010 Your question is kind of vague. You gotta be more specific. Post the script if possible that way we can help you. As a tip, don't echo out anything before the header(...) line. Link to comment https://forums.phpfreaks.com/topic/189358-what-am-i-doing-wrong/#findComment-999599 Share on other sites More sharing options...
chrispos Posted January 21, 2010 Share Posted January 21, 2010 Put your PHP script above the head tags as this is where the session is started, Hope this helps Link to comment https://forums.phpfreaks.com/topic/189358-what-am-i-doing-wrong/#findComment-999614 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.