Quote:
Originally Posted by qwe
it doesn't have to be, can be random too if it's easier
|
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))]);
?>