View Single Post
Old 09-17-2002, 11:47 AM  
ldinternet
Confirmed User
 
Join Date: Apr 2001
Posts: 8,245
For fucks sake.

Code:
< ?php
mt_srand((float)microtime()*1000000);
$f=file("links.txt");
$u=trim($f[mt_rand(0,sizeof($f)-1)]);
header("Location: $u");
? >
links.txt = list of links in a text file, one on each line.

Just delete the spaces before or after each question mark.
ldinternet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote