Page 1 of 1

PHP redirects?

Posted: Thu Feb 13, 2003 9:34 pm
by Drastik
I remember using something like this as a redirect:

Header Location: index.php

I cannot remember how to use it! And its bothering me, anyone know?

Posted: Fri Feb 14, 2003 12:05 am
by lazy_yogi
// refresh/redirect with delay :

<?php header("refresh: 5; url=http://$SERVER_NAME/page.php"); ?>


// refresh/re-direct without delay :

<?php header("Location: http://$SERVER_NAME/page.php"); ?>