![]() |
Need quick php code - random page by day
I need a quick php code that will pull a random page from a list of url's and show a different page every day based on the server's time. The output should be the page url. Hope someone can help.
|
this script pulls links using the day of the year as it's base..
put the urls in a file called urls.txt - one on each line then put this in a .php file <?php $urls = file("urls.txt"); echo trim($urls[date("z")]); ?> |
All times are GMT -7. The time now is 12:44 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123