Redirecting a PHP page

This is more for me probably than for anyone else, but I find myself enjoying this little php redirect script.  It’s so simple, yet is so powerful.

<?php

header('Location: http://www.example.com/example.php');

?>

Hopefully someone else like me who is constantly utilizing different programming languages will be able to benefit from this little tidbit as I have.

Cheers!

Leave a Reply

  • Google+
  • LinkedIn
  • Twitter
  • YouTube