questoin on headers (they're sent ok, i just need to modify)
Moderator: General Moderators
questoin on headers (they're sent ok, i just need to modify)
ok. this isn't covered [url=http://us3.php.net/manual/en/function.header.php]here, and i'm about to check the header thread, but i doubt it's there... witht he redirection header, is there a way to specify how long until redirection? i need to delay it so that if there's an error message the user can read it, because there's an issue and the redirection is moving to fast... i don't see the debugging lines i placed in
Think not...
But you could perhaps any debugging message as a ?error=message and retrieve it with a $_GET in the taget file (assumes you are Location: to one of your own pages).
If error occurs, logging it to a simple *.txt file might help also, displaying it later?
If error occurs, halt the page totally, displaying the errormsg, and a link to the Location: page (letting the user click the link after he/she reads the message...)
Just ideas.
But you could perhaps any debugging message as a ?error=message and retrieve it with a $_GET in the taget file (assumes you are Location: to one of your own pages).
If error occurs, logging it to a simple *.txt file might help also, displaying it later?
If error occurs, halt the page totally, displaying the errormsg, and a link to the Location: page (letting the user click the link after he/she reads the message...)
Just ideas.
This can be done using a meta tag rather than using the header function as below:
This will redirect you to that page you set after a delay of 3 seconds.
I've jsut tried the code above and I am redirected to google after 3 seconds and whilst I am waiting I get "Error Message" on my page.
Is this any help??
Just for interest sake, something I found very handy for pages that need refreshing alot (e.g real time stats) you can use
which will refresh the current page every 60 seconds, thus keeping it up tp date!
N...
Code: Select all
<meta HTTP-EQUIV="REFRESH" CONTENT="3; URL=http://www.google.com">
<?php
Print "Error message";
?>I've jsut tried the code above and I am redirected to google after 3 seconds and whilst I am waiting I get "Error Message" on my page.
Is this any help??
Just for interest sake, something I found very handy for pages that need refreshing alot (e.g real time stats) you can use
Code: Select all
<meta HTTP-EQUIV="REFRESH" CONTENT="60">N...