Home > Php > How can i do auto redirect using php?

How can i do auto redirect using php?

January 1st, 2010 Leave a comment Go to comments    

Put the following code at the top of your page.

<?
$URL="http://www.yourdomain.com";
header ("Location: $URL");
?>

Categories: Php Tags: ,
  1. January 1st, 2010 at 23:30 | #1

    Thank you, it was just what I was looking for!

  1. No trackbacks yet.