<? $file = "ads.txt"; $fp = file($file); srand((double)microtime()*1000000); $urls = $fp[array_rand($fp)]; echo $urls; ?>