Hey, I've seen this used on alot of sites, http://yourdomain.com/external.php?url=http://www.redirectsite.com goes to http://redirectsite.com And anything you put into the ?url= goes to it. and when you go to the external.php, it says: 'You are being redirected to (site url)'. Whats the code for this? Thanks, Alec
Easy Just use something like, <?php $seconds = 3; // set the time to redirect in $url = $_GET['url']; echo "You are being sent to $url in $seconds"; header("Refresh:$seconds URL=$url"); ?> PHP:
Is there a way to get current URL automatically?, let say in this case if the current page is http://www.redirectsite.com/news.php. //this is the current page that i type manually $url="http://www.redirectsite.com/news.php"; //this is the link to the next page,which i can go back again to this page (current page) base on $url echo "<A href=\"www.redirectsite.com/login.php?url=$url\">Login</A>"; PHP: