question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
stylezeca
Forum Newbie
Posts: 13
Joined: Sun Jan 04, 2004 4:27 pm

question

Post by stylezeca »

question, im trying to do this calendar to grab a certain month to display the correct calendar

<? include("calendar/" . strtolower(date("F")).".html"); ?>
<? include("calendar/" . strtolower(date("F", strtotime("+1 month", time()))).".html"); ?>

that code work it grabs january.html etc... but i want it to detect what year like

january2004.html or february2005.html, i want it to detect the year to, that would be great if you could help , thanks!!!
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

See the date() fn, php manual.
Post Reply