View Single Post
Old 07-06-2013, 11:52 AM  
alcstrategy
Confirmed User
 
Industry Role:
Join Date: May 2012
Posts: 124
here is a very simple example in php

<?php
$urls = file('urls.txt');
$rand = array_rand($urls);
header("Location: {$urls[$rand]}");
?>

in urls.txt make each line a url

this is just a simple example and should be put before output otherwise you technically could put ob_start() at the beginning and supress output
alcstrategy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook