• Welcome to Valhalla Legends Archive.
 

[PHP] Error with headers(yay).

Started by Arthas, June 11, 2004, 03:10 PM

Previous topic - Next topic

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...

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.
Quote"Pray not for lighter burdens, but for stronger backs." -- Teddy Roosevelt
"Your forefathers have given you freedom, so good luck, see you around, hope you make it" -- Unknown

j0k3r

Quote from: Tuberload on June 11, 2004, 03:24 PM
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.

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).
QuoteAnyone attempting to generate random numbers by deterministic means is, of course, living in a state of sin
John Vo

Arthas

Yes, but this is vbulletin. It works PERFECTLY on one server, and fucks up on the other, wtf?

Arthas

Nevermind... Seems having multiple lines after ?> fucks up your script.

Adron

Quote from: Arthas on June 12, 2004, 02:16 AM
Yes, but this is vbulletin. It works PERFECTLY on one server, and fucks up on the other, wtf?

One possibility is that there's a global setting on the working site that says to buffer all output.