Not sure if this is in the right forum? Anyway Im not sure what happened but when I try to login into one of sites I get this error: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/myspace2/public_html/index.php:2) in /home/myspace2/public_html/plugins/admin/admin_entrance.php on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/myspace2/public_html/index.php:2) in /home/myspace2/public_html/plugins/admin/admin_entrance.php on line 4 Warning: Cannot modify header information - headers already sent by (output started at /home/myspace2/public_html/index.php:2) in /home/myspace2/public_html/plugins/admin/admin_entrance.php on line 17 Any suggestions?
You have to put session_start() at the very super ultra top of your script, right after the <?php tag, and if there isn't one, make it. header() can only be used before any output is made, basically meaning before the <html> tag..same with some other functions.