Posted by fiziwig on 09/28/85 11:43
header has to be executed before ANY bytes are sent to the browser.
Before <html>, and you can't even have a single blank before the first
<? or you get the message "headers already sent...", so you can't put
it in the same place in the code because if you are writing a <meta...>
then you've already sent the <htmL> and <head> to the broswer. Too late
to use header by then.
FWIW: I cut and pasted your code into a dummy php file and ran from my
host though my IE 6.0 and it worked fine. I'm assuming you did open and
close with <head>...</head>
But I'd still go with the header solution because it's not brower
sensitive.
--gary
Navigation:
[Reply to this message]
|