I've been searching on the boards here for a while.. and have been doing some testing on my own. I'm just trying to do a simple check to see if the user is already logged in:
I have the following code:
PHP Code:
<?php
error_reporting(E_ALL);
chdir("forum/");
include('./global.php');
include('./includes/functions_user.php');
// echo "curr dir = " . getcwd();
// echo " user = $vbulletin->userinfo['username']";
?>
But no matter what, I keep getting the following error:
Unable to add cookies, header already sent.
File:
Line: 0
From searching, it seems that error message should include the file, line, but it doesn't. I'm able to replace the includes with a PHP header('url') and it redirects fine... which is very weird.. I'm using IIS in case this matters.
Any clues? Thanks.
Blah, I removed error_reporting(E_ALL); and upgraded to 3.5 final from RC3 and now it all works.. weird