![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
|
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")]); ?> |
![]() |
![]() ![]() ![]() ![]() ![]() |