Thread: PHP experts
View Single Post
Old 11-29-2004, 12:22 PM  
LoveHenk
Confirmed User
 
Join Date: May 2004
Location: Netherlands
Posts: 308
<?php
$files = array();

// Define
$files[] = 'hardcore-01.html';
$files[] = 'hardcore-02.html';

$files2 = array();
// Define
$files2[] = 'hardcoregallery-01.html';
$files2[] = 'hardcoregallery-02.html';


$num = rand(0,sizeof($files)-1);
?>

stuff here

<?php readfile($files[$num]); ?>

stuff here

<?php readfile($files2[$num]); ?>

stuff here
LoveHenk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote