The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have a file outside of vb with the following code:
Code:
<?php //Store current directory $cwd = getcwd(); echo getcwd().'\n'; //change to forum directory chdir ('../forum'); echo getcwd() . '\n'; require_once('global.php'); if ($vbulletin->userinfo['userid']) { echo 'Welcome ' . $vbulletin->userinfo['username'] . ', you have logged in.'; } else { echo 'Not logged in...'; } //return to original directory chdir ($cwd); echo getcwd().'\n'; ?> Unable to add cookies, header already sent.Can anyone help?? |
#2
|
|||
|
|||
![]()
That is because you cannot have any HTML output before the headers (cookies) are defined. E.g., no output before global.php is included.
|
#3
|
|||
|
|||
![]()
Ahh, thank you so much!!!
ASP coder i am afraid... |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|