* *

Saturday, May 30, 2009

Redirect a URL using PHP>>

Redirecting to a new URL in PHP is done with the header() function. You must call this function before you output anything, otherwise the server automatically generates a header for you and the function won't execute. The command is used as follows: header("Location: http://www.redirecturl.com/");
?>

No comments:

Post a Comment