View Single Post
Old 12-01-2006, 11:22 PM  
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Couldnt get it to one line-

<?$u=file('urls.txt'); echo $u[array_rand(file('urls.txt'))]?>

Or for an instant redirect
<?$u=file('urls.txt'); header('Location:'.$u[array_rand(file('urls.txt'))])?>

Should do the trick
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote