Below is a quick and simple way to achieve a Picture of the Day / DailyPic script without database access for your website. You can just about put this anywhere in your web site.
Usage
Modify the following variables to fit your Website. For your images you must name them according to date format 2011-08-19.jpg and place them in the folders expected by image_url, image_dir, etc.
6 | $image_url = "http://yourwebsite/DailyPic/photos/" ; |
9 | $image_dir = "/path/to/your/site/htdocs/DailyPic/photos/" ; |
12 | $default = "http://yourwebsite/DailyPic/photos/default.jpg" ; |
17 | $photo = "$image_dir/$date" . $ext . "" ; |
19 | if ( file_exists ( $photo )){ |
22 | <img src= "'.$image_url.'/'.$date.$ext.'" border= "0" > |
28 | <img src= "'.$default.'" border= "0" > |