View Single Post
Old 12-19-2004, 04:20 PM  
European Lee
Confirmed User
 
Join Date: Dec 2002
Location: Daytona Beach
Posts: 7,133
Use this..

PHP Code:
<?php 
$fileName 
"ads.txt"
mt_srand( (double) microtime() * 1000000 ); 
$a file($fileName); 
$randNum mt_rand0sizeof($a)-); 
header"Location: "$a[$randNum] ); 
?>
Also create a .txt file with one url on each line and upload it to the location defined in $fileName = "ads.txt";

Then rename the .php file to something like index.php and upload to your server

Regards,

Lee
European Lee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote