View Single Post
Old 04-22-2003, 01:38 PM  
ldinternet
Confirmed User
 
Join Date: Apr 2001
Posts: 8,245
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_rand0sizeof($a)-);
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

Last edited by ldinternet; 04-22-2003 at 01:42 PM..
ldinternet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote