Thread: 'lil PHP help.
View Single Post
Old 04-20-2003, 02:17 AM  
- Jesus Christ -
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
'lil PHP help.

Will this work...and is there a way to make the code cleaner/faster? Its going to be processed like a couple times a second.

Any input appreciated (cuz IM no programmer)
Its supposed to redirect but I don't even know if my header line is right.

PHP Code:
<?php
// Random URL From File
srand((double)microtime()*1000000);
$list=file("URLLIST.txt");
$url=rand(0count($list)-1);
header("Location: $url");
?>
__________________

Amen
- Jesus Christ - is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote