Help with header()
Posted: Thu Sep 09, 2010 7:41 pm
I wanted a page to reload every 5 seconds so I added this code at the top
It worked fine on my computer but when I uploaded to the server, I got this error
[text]The server encountered an unexpected condition which prevented it from fulfilling the request.
The script did not produce correct headers. It must at least print out a Content-Type header, like so:
Content-Type: text/html
The header the script produced was:
Refresh :5;[/text]
So I tried
But it didn't work.
Any suggestions?
Code: Select all
header("Refresh :5;");[text]The server encountered an unexpected condition which prevented it from fulfilling the request.
The script did not produce correct headers. It must at least print out a Content-Type header, like so:
Content-Type: text/html
The header the script produced was:
Refresh :5;[/text]
So I tried
Code: Select all
header("Content-Type: text/html;");
header("Refresh :5;");Any suggestions?