|
|
2021-08-24, 06:53 AM | #1 |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
I actually know this one!!! (not that I wrote it lol)
Code:
<?php $file = "/home/domain.com/public_html/textfile.txt"; $banners = file($file); srand((float) microtime() * 1235689); $selected = array_rand($banners); $SelBanner = trim($banners[$selected]); if ($SelBanner=="") { $SelBanner = trim($banners[0]); }; echo $SelBanner; ?> https://www.link-o-rama.com/greenguy/mlinks.htm |
2021-11-24, 11:55 AM | #2 |
That's what she said
|
It took a while before I tested it, but FYI, it works :-)
(Of course you knew it worked, I mean, it works for me too :-D ) Thanks again, appreciated Jlly Last edited by jollyhumper; 2021-11-24 at 12:35 PM.. Reason: added [/quote] |
|
|