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

Link to comment
Share on other sites

<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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.