gibigbig Posted April 20, 2007 Share Posted April 20, 2007 okay i've added the 'session start' function to the code. I've placed a new layer over the backround image, but now the layout is all messed up. can someone explain whats wrong, my page is: www.narutoking.com please view the source and tell me the mistake i made. thanks a lot Quote Link to comment Share on other sites More sharing options...
MadTechie Posted April 20, 2007 Share Posted April 20, 2007 <br /> <b>Warning</b>: session_start(): Cannot send session cookie - headers already sent by (output started at /home/www/narutoking.com/index.php:3) in <b>/home/www/narutoking.com/index.php</b> on line <b>7</b><br /> <br /> <b>Warning</b>: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/narutoking.com/index.php:3) in <b>/home/www/narutoking.com/index.php</b> on line <b>7</b><br /> session_start(); Must be the first command (nothing must be sent to the page before them) show the first 10 lines of your index.php file in code tags Quote Link to comment Share on other sites More sharing options...
gibigbig Posted April 20, 2007 Author Share Posted April 20, 2007 show the first 10 lines of your index.php file in code tags do you want me to paste my code here? Quote Link to comment Share on other sites More sharing options...
MadTechie Posted April 20, 2007 Share Posted April 20, 2007 please In Code Tags (#) Quote Link to comment Share on other sites More sharing options...
gibigbig Posted April 20, 2007 Author Share Posted April 20, 2007 my code is too long to paste (like 500 lines) my site is www.narutoking.com so you can view the source there. thanks for the help Quote Link to comment Share on other sites More sharing options...
MadTechie Posted April 20, 2007 Share Posted April 20, 2007 No Paste the first 10 lines (remove any passwords or anything) i just need about 10 lines I can't view the php via view source, OR Try Remove the current session_start(); and at the VERY TOP of the page add this <?php sesstion_start(); ?> if this fails then we need to see the php code, in the php help section pinned in a post about headers that may help PS please use the code tags Quote Link to comment Share on other sites More sharing options...
gibigbig Posted April 20, 2007 Author Share Posted April 20, 2007 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><script type="text/javascript" language="JavaScript1.2" src="stmenu.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <?php session_start(); ?> <!-- #Layer1 { position:absolute; the first ten lines Quote Link to comment Share on other sites More sharing options...
AndyB Posted April 20, 2007 Share Posted April 20, 2007 <?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><script type="text/javascript" language="JavaScript1.2" src="stmenu.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <!-- #Layer1 { position:absolute; 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.