PHP Redirection script

Learn how to redirect in this tutorial, you can use header(); function in php or use meta to redirect to a new page you want or redirect to other website. In this scripts, you can use header(); method or use meta to redirect.

Code - PHP Redirection script

// For example, redirecting to www.phpeasystep.com
header("location:http://www.phpeasystep.com");
or
echo "<meta http-equiv='refresh' content='0;url=http://www.phpeasystep.com'>";

 


Similar Post

Alternating table row colors

Many of websites use this script to alternate their table row color that selected from mysql database, very useful and cool.

Upload and Rename File

In this tutorial show you how to rename file when upload file to server to prevent new file overwrite an old file that exists in you server.