Hi there!
I have recently begun recoding a site from using ssi and cgi to using php, and I have stumbled over a little problem.
I have a cgi-script that prints a 'Quote of the day', which the script reads from several textfiles.
The files are named to a separate month (jan.txt, feb.txt, ...) and each file has one quote for each day that month.
The files look like this:
YYYYMMDD!!Quote\n
Example:
19530101!!Concrete was invented by Reuben Smith.
19530102!!The seven day war ended in Finland.
So what I want is a small php script that opens the correct file (the current month) and then echos the quote for the actual day and the year that it happened...
Thanks in advance / jek