header trouble<

liunx

Guest
does anyone know how one server can let me send headers yet another server wont let me send headers when it is the exact same code being used??????? And then how do you fix it????If no one knows can some one point me in the right direction of where I can get an answer????what? all servers let you send headers, it is the code that stops you. what errors are you getting?

it's not the server but the browser that sends the header.i am getting the error that headers were already sent...... but if i take the code and run it on another server it works fine!!!!!!i figured out a different approach but if you have any idea what may be going on it would be useful to know for future purposesi am thinking that it is in the httpd.conf file so I am compareing them right now but if anyone might know where the exact error might be it would help other than that thanks for the helpit has nothing to do with the server. it has to do with your code.

what is the code is it erroring on? it can also be a space somewhere. a space after ?> will even cause it if the file is included in another script.

also you can't send any html stuff like <html> to the browser, this will also cause it. headers() and setcookie() must go before all outputted html to the browser. it has nothing to do with the server.why would the code work on a different server than???????same code and same files? I don't think it can. the headers have nothing to do with the server, it is the browser sending the headers. the server is just running the code.

it doesn't matter if one does it or not, it is an error in your code and should be fixed. regardless if it doesn't happen on another server.that does not make sense.... if it is the same code and same files for the same web site... running in the same browser... the only thing that is different is the server it is on..... All I did was copy the all the site files from the one server to another... I did not change the code or rewrite it..... I get what your saying but if it is an error in the code than shouldn't the error show up on both servers????maybe the one server has errors turned off? which is stupid.i think it does i will check and seewhy don't you just fix the error??because I have shown you the code a while back and you said nothing was wrong with it!!!!!!I don't remember for this error. the code may look right but if you are including anything in that script it will cause the samething to happen.
 
Back
Top