Random Filename Chooser

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Igor
Site Admin
Posts: 31
Joined: Mon Sep 07, 2009 5:14 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Random Filename Chooser

Postby Igor » Thu Sep 10, 2009 8:41 pm

This is a rather peculiar little script with a purpose that may not be immediately apparent. The script will look for files in the specified folder; it will then pick one at random from the list of matches and create a soft link to it. How is this useful, you ask? There are situations where you want to access the same file name but get something different once in a while.

Imagine you access “default.htm”, which is a dynamically updated link to a random page from a given set. Or, perhaps, you have an application use a particular file for input and you want to rotate the input sources at random, selecting from a specific set of choices.

Read more: http://www.krazyworks.com/random-filename-chooser/
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “System Administration”

Who is online

Users browsing this forum: No registered users and 1 guest