View Single Post
Old 11-23-2009, 04:03 PM  
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Quote:
Originally Posted by quantum-x View Post
Quick and dirty way to do it:
Code:
<?
$urls = file('URLS.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)
$url = array_shift($urls);
array_push($urls,$url);
file_put_contents('URLS.txt',implode("\r\n",$urls));

header('Location:'.$url);
?>
Will work. Untested, don't ask for me to fix it if it doesn't kick - pay woj instead.
It helps to completely read what he was looking for.
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote