Valhalla Legends Forums Archive | Web Development | [PHP] Error with headers(yay).

AuthorMessageTime
Arthas
Here is the URL: http://www.SonsOfAzeroth.org/forums

Does anyone know what the crap is going wrong?

Also, the working version of this site is located here:

http://eclipse.servershost.net/~slybone/

I am trying to copy the entire forums from one account to another...
June 11, 2004, 8:10 PM
Tuberload
You have to send header information before you send the rest of the data or you will get the error you are getting.

For example, let's say somewhere you are trying to echo something to the browser, and then you try and send some header information.
June 11, 2004, 8:24 PM
j0k3r
[quote author=Tuberload link=board=22;threadid=7203;start=0#msg64703 date=1086985498]
You have to send header information before you send the rest of the data or you will get the error you are getting.

For example, let's say somewhere you are trying to echo something to the browser, and then you try and send some header information.
[/quote]

To be a bit more clear (I got confused while reading that, but he's right), at the VERY top of your script you have to send the header information, before everything else (including <html> tag, I think).
June 11, 2004, 9:17 PM
Arthas
Yes, but this is vbulletin. It works PERFECTLY on one server, and fucks up on the other, wtf?
June 12, 2004, 7:16 AM
Arthas
Nevermind... Seems having multiple lines after ?> fucks up your script.
June 12, 2004, 8:53 AM
Adron
[quote author=Arthas link=board=22;threadid=7203;start=0#msg64790 date=1087024576]
Yes, but this is vbulletin. It works PERFECTLY on one server, and fucks up on the other, wtf?
[/quote]

One possibility is that there's a global setting on the working site that says to buffer all output.
June 12, 2004, 9:18 AM

Search