Php codes headers

nexhunter

New Member
Messages
239
Reaction score
1
Points
0
I am making a cms using a tutorial from
http://www.php-mysql-tutorial.com/cms-php-mysql.php

I am also using the log in script the one that uses database

http://xstudio.elementfx.com/index.phps
http://xstudio.elementfx.com/add.phps
http://xstudio.elementfx.com/admin.phps
http://xstudio.elementfx.com/login.phps
http://xstudio.elementfx.com/logout.phps
http://xstudio.elementfx.com/edit.phps

I believe I entered all the codes in correctly :dunno:

Now when i go to the login page i get this error

PHP:
Warning:  session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/nexhunt/public_html/login.php:4) in /home/nexhunt/public_html/login.php on line 6

Warning:  session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/nexhunt/public_html/login.php:4) in /home/nexhunt/public_html/login.php on line 6


Can anyone with experience in php help me in solving this error

http://xstudio.elementfx.com/copy.ht

empty file with basic layout code just added in the word "php codes" just as place holder encase if it does load the page so i can break it before it loads fully.
 
Last edited:

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
why is the login link at port 4? try editing that out. Try going to the script that sends the data to the database and finding a link that has :4 at the end of it. I think it is that, not completely sure. also, why do you have a phps file type?
 
Last edited:

nexhunter

New Member
Messages
239
Reaction score
1
Points
0
I name files to random extensions if they are not being viewed as design but more of want you to see the code and see if they are any errors.
 
Last edited:

rickle42

New Member
Messages
59
Reaction score
0
Points
0
i think its because you have to use start_session() at the very beginning of your file, before <html> tag
 

Slothie

New Member
Messages
1,429
Reaction score
0
Points
0
You have to start_session and output any header codes BEFORE you start on anything else that outputs to the browser.
 
Top