Page 1 of 1

Random page rotation script in PHP

Posted: Mon Dec 21, 2009 2:30 pm
by Neo
Random page rotation script in PHP

Code: Select all

$pages = array('page1.php', 'page2.php', 'dir/page3.php');
header('Location: ' . array_rand($pages));