View Single Post
Old 07-07-2013, 01:52 AM  
lbazso
Confirmed User
 
lbazso's Avatar
 
Industry Role:
Join Date: Jan 2012
Location: Europe
Posts: 472
Quote:
Originally Posted by alcstrategy View Post
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
Thanks so much! Appreciate it!
lbazso is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook