Thread: potd script
View Single Post
Old 05-14-2004, 01:09 PM  
TommyM
Confirmed User
 
Industry Role:
Join Date: May 2001
Location: Denmark
Posts: 1,147
Quote:
Originally posted by Global Dialers
.php

its easy enough to do.

create a directory on your server containing 365 pics named 001.jpg to 365.jpg

create a html page with .php extension with the look of how you want the potd to have.

include this in the appropriate place in the html code

PHP Code:
<?include("directory/0".date("z").".jpg");?>
thatll update the page with a new pic every day of the year
Thanks...is that all I have to do, just place that code? dont I have to change anything, so it would know what date is it or something?
TommyM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote