PDA

View Full Version : need help with integrating vbulletin in a php page


knotapunk
Tue 13th Feb '01, 8:13pm
i already posted this in the hack dir, but i think it be better suited here:

I'm having some problems while helping a friend make his webpage. I integrated the vbulletin members online on the main page (which is .php). Everyting looks fine and works perfectly on my computer, but when its looked at by another computer the following error displays on the top of the page sporadically (but the page still works perfectly).

<b>Warning: Cannot add header information - headers already sent by (output started at /usr/home/v1/a0011053/html/mig/index.php:4) in /usr/home/v1/a0011053/html/mig/vbulletin/global.php on line 755

Warning: Cannot add header information - headers already sent by (output started at /usr/home/v1/a0011053/html/mig/index.php:4) in /usr/home/v1/a0011053/html/mig/vbulletin/global.php on line 758</b>

if someone could please take a look at my page and let me know what may be causing this, that would be great.

webpage --> http://208.185.95.167/mig/index.php
code --------> http://208.185.95.167/mig/index-code.html

thanks,

SmasKenS
Tue 13th Feb '01, 11:27pm
"Cannot add header information - headers already sent..."
means that the HTTP headers have been sent and the document body have begun. since the souce page begins with

<html>
<head>
....

that means you cannot send any header information after that. I dont know where the error is, could be in usersonline.php, see if there are any Header() or setcookie() functions in that file or anywhere else.. (setcookie() is a function for setting the "Cookie: ..." header)

ok... good luck!