GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Need quick php code - random page by day (https://gfy.com/showthread.php?t=514862)

mkx 09-10-2005 03:58 PM

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.

mortenb 09-10-2005 04:22 PM

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