PDA

View Full Version : Unable to add cookies, Header Already Sent WON'T go away.


Curll
05-07-2004, 02:07 AM
http://www.xblgamers.com/indexnew.php

We're trying to integrate vB3 logins and various bits of info (Latest posts, Latest events) onto that page. But, if you're not logged in, you always get that error. It's a non-vB page, but we're calling global.php.

You can log in with Pretty Lush/qwerty (http://www.xblgamers.com/forums) to see what it looks like when logged in. Here's Line 1 on indexnew.php

<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>

There are no spaces. Before or after. And if I remove that, it says error on line 14, which is then <style type="text/css">

It's getting really frustrating :(

Zachery
05-07-2004, 02:12 AM
http://www.xblgamers.com/indexnew.php

We're trying to integrate vB3 logins and various bits of info (Latest posts, Latest events) onto that page. But, if you're not logged in, you always get that error. It's a non-vB page, but we're calling global.php.

You can log in with Pretty Lush/qwerty (http://www.xblgamers.com/forums) to see what it looks like when logged in. Here's Line 1 on indexnew.php

<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>

There are no spaces. Before or after. And if I remove that, it says error on line 14, which is then <style type="text/css">

It's getting really frustrating :(
Can you post the contents of the whole file?

Curll
05-07-2004, 02:29 AM
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>
<?php
$option1 = 'Archive ? ';
$option2 = 'News ? ';
$option3 = 'Features ? ';
$option4 = 'Reviews ? ';
$option5 = 'Preview ? ';
$option6 = 'Search ';
?>
<!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>
<title>xblGamers :: Why play with yourself?</title>
<meta http-equiv="Content-Type" content="SEXBOX" />
<style type="text/css">
<!--
body
{
color: #000000;
font: 10pt verdana, geneva, lucida, 'lucida grande', arial,

helvetica, sans-serif;
margin: 0px;
padding: 0px;
background-color: #999999;
background-image: url(http://www.xblgamers.com/images/bg[].jpg);
background-repeat: repeat-y;
background-position: center;
}
body a:link
{
color: #41627E;
text-decoration: underline;
}
body a:visited
{
color: #41627E;
text-decoration: underline;
}
body a:hover, body a:active
{
color: #000000;
text-decoration: underline;
}
#vert {
width:1px;
height:500px;
background-color:#686868; }
#13pxspacer {
height:13px;
}

#topadbar {
background-color: #999999;
height: 34px;
width: 826px;

}
#bottomadbar {
background-color: #999999;
height: 34px;
width: 826px;
}
#middleadbar {
background-color: #8FAEC1;
height: 200px;
width: 826px;
}
#middleadbar2 {
background-color: #A6BFCE;
height: 200px;
width: 826px;
}


#everything
{
color: #000000;
font: 10pt verdana, geneva, lucida, 'lucida grande', arial,

helvetica, sans-serif;
}

#header {
width:846px;
height:113px;
background-color:#686868; }

#middlefiller {
width:32px;
height:900px;
}

img
{
border: 0
}

#maincontent {
background-color:#B7B7B7; }

#fs-archive {
background-color:#8B8B8B; }

#coverstory {
width:313px;
height:24px;
background-color:#B4C6D2; }
#whatsup {
width:217px;
height:24px;
background-color:#A8A8A8; }

#coverstory2 {
width:13px;
height:24px;
background-color:#B7B7B7; }
#coverstory3 {
width:221px;
height:24px;
background-color:#A8A8A8; }
#whatsup3 {
width:232px;
height:24px;
background-color:#B4C6D2; }
#coverstory4 {
width:455px;
height:184px;
vertical-align:center;
background-color:#8FAEC1; }
#whatsup-content {
width:455px;

vertical-align:top;
background-color:#999999; }
#coverstory5 {
width:295px;
height:184px;
background-color:#999999;
cellpadding:10px; }
#community-content {
width:339px;

vertical-align:top;
background-color:#8FAEC1; }

#horiz {
width:846px;
height:1px;
background-color:#686868; }

#clock {
background-color:#000000;
width:65px;
height:15px;
}

#footer-top {

background-color: #B7B7B7;
width: 846px;
height: 25px;
}
#footer-bottom {

background-color: #999999;
width: 846px;
height: 26px;
}
#footer-left{

background-color: #999999;
width: 18px;
height: 31px;
}
#footer-right{

background-color: #999999;
width: 22px;
height: 31px;
}
#footer-middle{

background-color: #999999;
width: 90px;
height: 31px;
}
#footer-bar{
background-image: url(images/footer-bar[].jpg);
background-color: #999999;
height: 31px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
}
#footer-middle-all{
background-color: #999999;
width: 846px;
height: 31px;
}

#noymargins {
background-color: #B7B7B7;
padding-right: 9px;
padding-left: 9px;
}

.logonBox {
font-size: 10px; font-weight: bold; color: #000000; background-color:
#B4C6D2; height: 13px; width: 100px
}
.LoginButton {
font-size: 10px; font-weight: bold; color: #000000; background-color:
#B4C6D2; height: 15px; width: 50px; border: 1px #B4C6D2 solid
}
-->
</style>
</head>
<body bottommargin="0" leftmargin="0" marginheight="0" marginwidth="0"

rightmargin="0" topmargin="0" bgcolor="999999">

<table width="100%" height="100%" cellpadding="0" cellspacing="0"

align="center">
<tr>
<td align="center">
<table height="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td></td>

<td id="vert"></td>

<td width="846" valign="top" align="left"

id="everything">

<?php include "header.php"; ?>

<?php include "maincontent.php"; ?>


<?php include "footer.php"; ?>

</td>

<td id="vert"></td>

<td></td>
</tr>
</table>
</td>
</tr>
</table>

</body>
</html>

TYorke
06-05-2004, 02:49 AM
Any fix for this? I am having the same problem with the login on non-vb page