FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Redirection





dark_paladin
Does anyone know a way to redirect to a certain link in a few seconds with php?
BlackSkad
It is not php, I don't know a way to do it with php, but it's in simple html:

Code:
<meta http-equiv="refresh" content="15;URL=yoursite.com">


Place this line in the head of your page (hard-coded or dynamicaly inserted with php), and the user will be redirected within 15 seconds to the adress 'yoursite.com' (which you can change to anything ofcourse)

Greatz,
BlackSkad
dark_paladin
Thanks... I was hoping for a php code, but meta tag works fine...
BlackSkad
well, there is a redirection-function in php, but you can't delay it.
Code:
header('location:yoursite.com');

This redirects visitors immediately to yoursite.com
This line must be on top of the page or you must use ob_start()

Greatz
kv
you can use header() along with sleep(). This redirection works from server side, not the client side.
Related topics
Does someone offer .Com redirection for FRIH$?
REDIRECTION
URL Redirection - Javascript+HTML, so simple...
User Agent Redirection
Redirection code for deleted URL...
Redirection to URL
301 Redirection
redirection
301 redirection in PHP and .htaccess
Problem with Subdomains
domain
Error 404 ..... How to Hide ...
why no hosting under .com
image
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.