View Single Post
Old 03-25-2007, 09:37 PM  
Napolean
Old school
 
Napolean's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: Kettering, OH
Posts: 4,327
Quote:
Originally Posted by Jon Clark View Post
Thanks... But would I put replace "fuckingnumber" with the number of files there are?
Code:
<?php
$url[] = 'http://www.test1.com';
$url[] = 'http://www.test2.com';
$url[] = 'http://www.test3.com';

$x= strval(rand()%count($url));

include($url[$x]);
?>
simpler version of the example above, only modification needed is to add more url's as you need them.
__________________
Need a programmer? (Desktop/Web Applications) --- Skype: napoleande
Napolean is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote