Setting up a PHP redirect

Butler

Registered Member
Joined
Feb 4, 2008
Messages
71
Reaction score
1
I am using this code to set up redirects and clear my referring information. But I want to be able to make the refresh occur after say a two second wait, so I can throw in some more code to stuff a few cookies while they wait, can anyone show me what changes I would need to make in order to do this?

Code:
<?php
echo '<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=http://' . $HTTP_GET_VARS['go2url'] . '">';
?>

Thanks
 
CONTENT="2 ...

change the 0 to the number of seconds you want to wait.
 
CONTENT="2 ...

change the 0 to the number of seconds you want to wait.

That simple? :o

I thought that was for something else. Thanks for the help, my PHP for dummies is in the post from amazon.
 
I am using this code to set up redirects and clear my referring information. But I want to be able to make the refresh occur after say a two second wait, so I can throw in some more code to stuff a few cookies while they wait, can anyone show me what changes I would need to make in order to do this?

Code:
<?php
echo '<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=http://' . $HTTP_GET_VARS['go2url'] . '">';
?>

Thanks

dont want sound noobiesh but i am, does this code hide referer?
 
dont want sound noobiesh but i am, does this code hide referer?

It does a meta refresh which should blank the referrer, it doesn't work iwth images though.
 
why you want to refresh ??????????'
affiliates link
redirection

and work well

(that disturbing me REFRESH" CONTENT="0) ????????'
look like blogger no toolbar :-)

best redirection i use
-http://tinyurl.com/
:-)
 
Add to your PHP files
<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>
and for static HTML files
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
 
To be sure, you can add another layer with javascript and make the counter start on focus/mouse move to catch the visitor first

Regards
 
Back
Top