PHP: How to redirect a visitor
Posted on May 21, 2008, Filled under PHP,
Bookmark it
This function will redirect the visitor to a specific location.
<?php
function go($location)
{
header("Location: ".$location);
exit;
}
// Location
$location = 'http://www.google.com/';
// Redirect the visitor
go($location);
?>Do you wish to receive the latest updates as soon as they are posted? Get our RSS Feed or Subscribe to the Newsletter!
- May 21, 2008
- article by Gabriel C.
- Leave a reply!
Related Posts
Create, Customize and Send Newsletters: MeeNewsat August 3, 2009 with 1 comment
PHP: Detecting Google Chrome Browserat October 6, 2008 with 7 comments
