View Single Post
Old 11-23-2009, 07:38 PM  
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
Quote:
Originally Posted by rowan View Post
Far easier.

<?php
$urls = file("URLS.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
header("HTTP/1.0 302 redirect");
header("Location: " . $urls[(rand(0, count($urls) - 1))]);
?>
works like a charm, thanks bro
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote