Good day All
Is there any way to disable warnings? when i upload my portfolio to the server(on the net) it works great, that is the orgfree.com one. But when I upload it to my server of mweb,it shows the following warnings when i want to login in:
----------------------------------------
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/m7713830/public_html/login.php:44) in /home/m7713830/public_html/login.php on line 93
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/m7713830/public_html/login.php:44) in /home/m7713830/public_html/login.php on line 93
Warning: Cannot modify header information - headers already sent by (output started at /home/m7713830/public_html/login.php:44) in /home/m7713830/public_html/login.php on line 95
----------------------------------------
SO line 44 is where my PHP code is starting and line 93 is where my session starts.line 95 points to my line that points to header Location: loggedin.php in the if function when the session is true.
If I do research on this topic i found that the meta char of utf 8 must change to ANSI, utf 8 is putting empty space in the beginning of the file, there's not suppose to be any empty spaces before the <?php code and that the php code MUST be ontop of the page.But i cannot put my php code on top of all the files because some pages must read my HTML code first to design the layout.
But whats also weird is the fact that on the orgfree.com server there are none of these messages and login is working perfectly(but not on my private mweb server
, it looks like it can be a server issue also?
I will continue doing research.And post my solution here again for those that might come across this same prob.