<?php $f_contents = file("random_redirect.txt"); $website = $f_contents[array_rand($f_contents)]; header('Location: '.$website); ?>