Created
August 30, 2016 14:45
-
-
Save Swistikkk/ec5ca1a5cd7d2d2add1e2380339f1a0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$Pages = array( | |
'http://sitename.ru/stranica-A.html' , | |
'http://sitename.ru/stranica-B.html' | |
); | |
$MaxRandom = getrandmax(); | |
$RandomValue = intval( rand( 0 , count( $Pages ) - 1 ) ); | |
header( 'Location: '.$Pages[ $RandomValue ] ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment