View Full Version : PHP Problems
ausnrl
01-24-2006, 02:52 AM
Unable to add cookies, header already sent.
File: /home/ausnrl/public_html/indexnew2.php
Line: 3
I made a php page right and i put this thing in to have a vbulletin login and what happend was that comes up when i try to view the page how do i fix it?
Ranger56
01-24-2006, 02:53 AM
post the page source
ausnrl
01-24-2006, 02:53 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html dir="" lang="">
<head>
<title>NRLLeague Forums</title>
</head>
<body>
<br /><br /><br />
<table class="tborder" cellpadding="" cellspacing="" border="0" width="70%" align="center">
<tr>
<td class="tcat"></td>
</tr>
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<div align="">
<!-- main error message -->
<blockquote><p>Unable to add cookies, header already sent.<br />
File: /home/ausnrl/public_html/indexnew2.php<br />
Line: 3<br /></p></blockquote>
<!-- / main error message -->
</div>
</div>
<!--
<div style="margin-top:px">
<input type="submit" class="button" value="" accesskey="s" onclick="history.back(1); return false" />
</div>
-->
</td>
</tr>
</table>
<br />
<!-- forum jump -->
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td></td>
</tr>
</table>
<!-- / forum jump -->
<br />
</body>
</html>
Ranger56
01-24-2006, 02:54 AM
I mean the page with the PHP still in it.
ausnrl
01-24-2006, 02:57 AM
there you go its attached in a zip
EDIT: Page removed from the Attachment unless needed please post
Ranger56
01-24-2006, 03:00 AM
Try putting this
<?php
chdir("forums/");
require('./global.php');
chdir("../");
mysql_select_db("ausnrl_forums");
?>
Before the doctype
ausnrl
01-24-2006, 03:02 AM
Try putting this
<?php
chdir("forums/");
require('./global.php');
chdir("../");
mysql_select_db("ausnrl_forums");
?>
Before the doctype
yeh it worked thanks for that!
Ranger56
01-24-2006, 03:02 AM
No problem.
ausnrl
01-24-2006, 03:04 AM
Also hey well with teh vbulletin thing the code right it lets you login but when you go to visit the forums its not logged in. Also do i need to make a new page when someones logged in that says you are logged in as ausnrl and replace the login forms with that?
Ranger56
01-24-2006, 03:18 AM
Also hey well with teh vbulletin thing the code right it lets you login but when you go to visit the forums its not logged in. Also do i need to make a new page when someones logged in that says you are logged in as ausnrl and replace the login forms with that?
No idea. I'm very new to PHP.
oracleguy
01-24-2006, 07:04 AM
I'm gonna move this over to the PHP forum since it is more suited for there.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.