![]() |
randomizing urls in a text file.
I am looking for a small free script that can randomizes urls in a .txt file, I found something that puts them in order and its a very useful little program.
|
stop the black on black crime fucksakes
|
Quote:
|
Quote:
|
Or you can try Randex at http://www.teca-scripts.com/free/
|
something like:
PHP Code:
|
$file = "urls.txt";
$fp = file($file); srand((double)microtime()*1000000); $urls = $fp[array_rand($fp)]; echo $urls; will work much better in the file you will have to put <a href="http://www.url.com">site</a><br> or $file = "urls.txt"; $fp = file($file); srand((double)microtime()*1000000); $urls = $fp[array_rand($fp)]; echo "<a href='$urls'>random site</a>\n"; hope that helps |
PHP Code:
|
that hahaha91; should be [0
|
let me explain the purpose I need this...
I will throw all my hosted galleries into 1 txt file and want to randomize the list and grab the top "50ish" links, list them on my site and delete them from the list, when I grab new hosted galleries I can just add them into the list and they will get added randomly. is it possible to display the whole list of urls all mixed up, otherwise how will i know which ones been listed. thanks for the help guys. |
hit me up on icq.
|
sounsd like you need something custom :)
icq: 33375924 if you need a hand with it |
All times are GMT -7. The time now is 05:56 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123