Home > Archive > PHP on Windows > November 2004 > Redirecting A Webpage
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Redirecting A Webpage
|
|
| Allen D. Tate 2004-11-18, 3:57 pm |
| I would like to setup an index.php file to redirect to another .php file
as soon as it is invoked, like [response.redirect] does in Active Server
Pages. Does anyone know this cammand off the top of their head? Thanks
in advance. :)
| |
| Felipe Alcacibar 2004-11-18, 3:57 pm |
| To redirect a page, you can use this 3 methods...
php:
the header function:
header("Location: some_page.php");
html:
the meta tag:
<meta http-equiv="refresh" content="0; url=some_page.php">
java script:
the location.href property
<script language="javascript" type="text/javascript">
location.href='some_page.php';
// also you can refresh by seconds
window.setTimeout('location.href="some_page.php";', 600); // 6
secs....refresh to some_page.php
</script>
good luck... x)
"Allen D. Tate" <atate@ohio.lib.in.us> escribió en el mensaje
news:419CBF5F.3000001@ohio.lib.in.us...
> I would like to setup an index.php file to redirect to another .php file
> as soon as it is invoked, like [response.redirect] does in Active Server
> Pages. Does anyone know this cammand off the top of their head? Thanks
> in advance. :)
| |
| Allen D. Tate 2004-11-18, 3:57 pm |
| Thanks to all who responded. I am very grateful.
-----
Allen D. Tate, Founder
Linux in Libraries
http://www.linuxinlibraries.com/
|
|
|
|
|