GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   randomizing urls in a text file. (https://gfy.com/showthread.php?t=559067)

Fucksakes 01-01-2006 04:25 PM

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.

sonofsam 01-01-2006 04:26 PM

stop the black on black crime fucksakes

Fucksakes 01-01-2006 04:29 PM

Quote:

Originally Posted by sonofsam
stop the black on black crime fucksakes

http://www.fucksakes.net/crabplz.jpg

NoHassleSteve 01-01-2006 05:05 PM

Quote:

Originally Posted by Fucksakes
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.

I think some kind of "Message of the Day" script is a direction to look in. :2 cents:

sinnerscorner 01-01-2006 05:09 PM

Or you can try Randex at http://www.teca-scripts.com/free/

mortenb 01-01-2006 05:13 PM

something like:

PHP Code:

<?php
$urls 
file("file.txt");
shuffle($urls);
for(
$i=0;$i<count($urls);$i++) {
   echo 
$urls[$i];
}
?>


fris 01-01-2006 05:35 PM

$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

uno 01-01-2006 05:48 PM

PHP Code:

<? $links = file('textfile.txt'); srand ((float)microtime()*1000000); shuffle($links);?><?=$links[0];?>

This has always worked fine for me.

uno 01-01-2006 05:49 PM

that hahaha91; should be [0

Fucksakes 01-01-2006 06:49 PM

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.

studiocritic 01-01-2006 06:55 PM

hit me up on icq.

woj 01-01-2006 07:23 PM

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