View Single Post
Old 2004-01-16, 05:57 AM   #1
urb
All the way from Room 101
 
urb's Avatar
 
Join Date: Aug 2003
Posts: 3,557
Send a message via ICQ to urb
PHP Code:

<?
$day 
date("z");
include (
"galleries/$day.php");
?>
This is from a really simple site I did once, with a folder called galleries which included 366 files each containing 20 reviewed hosted galleries.

In a format like this
PHP Code:
<?php
   $today 
date("d-M");
   print 
"$today";
   
?> ~ <a href="http://galleries.whatever.com/?422">Hardcore gallery description</a><br>
Each set of 20 would be on a page called...

0.php
1.php
>>
365.php

It ain't the best way of doing it, but it works.
__________________

Last edited by urb; 2004-01-16 at 06:05 AM..
urb is offline   Reply With Quote