• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Autoupdate script

notnamed

/fws/
NLC
I'm looking for a script that will take images in a folder (for instance, 2003-April-22) and display them based on the date. I'm making a webcomic...I have plenty of time to make a week's worth of comics in a day but I don't know if I'd have time to update the pages every day. Is there any script (preferably PHP) that can do this?

Thanks :classic2:

[edit]
Found/Made what I need:
Code:
<?
$year = date(Y);
$month = date(F);
$date = date(d);
echo ('<img src="comic/' . "$year" . "-" . "$month" . "-" . "$date"  . '.png">');
?>
 
Last edited:
I have one in my website to display cute babes everyday. Yes, it is in php. But you have to rename the image files as 1 to 31 for the purpose of dates, then the code is as below (ignore the unwanted html tags):

<?
$today = getdate();
$date = $today['mday'];
$month = $today['month'];
$year = $today['year'];
?>

<font color="Maroon">
Today's Babe - <?echo "$month $date, $year"?>
</font>

<br />

<img src="http://www.yourwebsite.com/pix_folder/<?printf($date)?>.jpg">

All the best.
 
mabye i didn't quite understand your post, but if you're going to be building quite a large collection, it would probally be best to store the information for them in a database, an in which case you could make a query like

$query = "SELECT * FROM table ORDER BY id DESC LIMIT 5";

so that would always display the last 5 entries for example


I have one in my website to display cute babes everyday
damm you have no website link :(
 
Last edited:
Back
Top