Hello, Is there a php redirect with a time delay similar to the Javascript redirect? Does anyone know how to do this? Thanks.
Can anyone explain why this is not working: $url = ($_GET['url']); $new_url = rawurldecode(rawurldecode(end(explode('*', $url)))); header('Refresh: 10; url=http://linkanon.com/?r=$new_url'); I want it to take the url from the browser, and put it in the $new_url position above.
Thanks for your responses. What is best for allowing my script to be read by a spider, but immediately redirected for visitors? Or is a Javascript redirect better for this? Thanks.
Jezek is right, you can't time delay functions in PHP,but tamilsoft's suggestion (using wait()) is a great idea. More information here: http://php.net/manual/en/function.sleep.php http://php.net/manual/en/function.header.php http://www.phpredirection.com/ Luke Jones: The best option would be to do it with JS since the Google robot doesn't have JS. The JS will only run when human visitors will visit your site. There's only the off user that doesn't have nowadays. This tutorial is useful: http://www.tizag.com/javascriptT/javascriptredirect.php