Wednesday, May 1, 2013

Redirect page after certain time PHP

5/01/2013

This is the simple php function to redirect page after certain time.

<?php
/* 
Online PHP Examples with Source Code
website: http://4evertutorials.blogspot.in/
*/

/*
* Redirects to specified $page 
*/ 
function REDIRECT($page, $seconds=4)
{ 

        // redirect specific $page within $seconds seconds
        header("Refresh: " . $seconds . "; URL=" . $page);
        exit(); 

}


?>

helpful? Share this

The Editorial Team of 4everTutorials consists of a group of PHP Professionals.

0 comments:

 

© 2014 4everTutorials. All rights resevered.

Back To Top