Quote:
Originally posted by ldinternet
If you want to put all galleries in a database, then link to the database and display a random gallery, then try this:
Create amateur.php with this code
<font size=3>
PHP Code:
<?php
$fileName = "amateur.txt";
mt_srand( (double) microtime() * 1000000 );
$a = file($fileName);
$randNum = mt_rand( 0, sizeof($a)-1 );
header( "Location: ". $a[$randNum] );
?>
</font>
Then create amateur.txt containing 1 gallery URL per line.
Upload both files and link to amateur.php
It will display a random gallery from amateur.txt
|
ldinternet, thanks for the code