Jump to content

nayout is all messed up with 'include' function, help please!


gibigbig

Recommended Posts

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

<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

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

<!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

<?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;

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.