News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPBuilder.com:
Building a PHP Calendar
July 29, 2009 @ 08:38:21

New on PHPBuilder.com there's a quick tutorial showing you how to create a simple calendar and add dates for your events.

Gone were any thoughts of simplicity whatsoever, or so I thought. Then it struck me. What was a calender but just a looping number system? The more I thought about it the more simple it became. At the end of the day, with a little research into PHP's date functions I had come up with something that actually worked. The working example can be downloaded here.

Their example uses either the current month or one inputted from the URL to determine things like day of the week to start, number of days in the month, how many weeks to display, etc. They also have to take the year into consideration so switching between December and January is just as seamless.

0 comments voice your opinion now!
calendar tutorial simple


blog comments powered by Disqus

Similar Posts

Chris Jones: DTrace PHP Using Oracle Linux 'playground' Pre-Built Packages

Federico Cargnelutti's Blog: Building a RESTful Web API with PHP and Apify

Zend Developer Zone: Profiling PHP Applications With xdebug

IBM developerWorks: Developing PHP the Ajax way, Part 2 - Back, Forward, Reload

Matthew Weier O'Phinney: RESTful APIs with ZF2, Part 3


Community Events

Don't see your event here?
Let us know!


api series extension library laravel5 interview opinion laravel release list framework version unittest podcast introduction example community language voicesoftheelephpant php7

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework