View Single Post
Old 11-23-2009, 06:38 PM  
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
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.
gives me this error

Parse error: syntax error, unexpected T_VARIABLE in /www/users/for/multiurl.php on line 3
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote