PHP redirects?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Drastik
Forum Newbie
Posts: 5
Joined: Wed Jan 15, 2003 2:07 pm

PHP redirects?

Post 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?
User avatar
lazy_yogi
Forum Contributor
Posts: 243
Joined: Fri Jan 24, 2003 3:27 am

Post 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"); ?>
Post Reply