Forum Moderators: coopster

Message Too Old, No Replies

add a pause for header redirect?

         

scorpion

11:33 pm on Jan 27, 2003 (gmt 0)

10+ Year Member



Is there a way to add a kind of momentary pause when calling a header redirect in a PHP file (or even in javascript)?

e.g. header("Location: URL");

The reason is that it seems that in some cases such as when redirecting to an affiliate tracking code, if the user clicks really fast on the link, you'll get an internal server error from time to time. Is this a PHP configuration issue? Has anyone had server errors when redirecting to an affiliate-type link?

jatar_k

11:36 pm on Jan 27, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



javascript

<meta HTTP-EQUIV="refresh" CONTENT="2; URL=http://www.site.com/">

where CONTENT="2" is the number of seconds to wait before redirecting