By eHow Internet Editor
Rate: (1 Ratings)
Calendars are very useful, small widgets that you can put on your site. Calendars can be used for many more things than showing the current date. One of the most popular uses of a calendar control is to have the dates as working links: when a user clicks on a date, she will see the articles posted on that day. There are many open source PHP calendar controls available on the Internet. Of course, you can always create your own control, but it is often better to use a ready-made one. Almost all of the available controls are free for non-commercial use (many of them are free for any use, including commercial) and can be customized to your liking.
require_once( 'class.Calendar.php' );
$cal = new Calendar ('2007', '8' );
echo "".$cal->getFullMonthName()."";
echo $cal->display();$names = array('2007-08-06','2007-08-07','2007-08-08','2007-08-09'
,'2007-08-10','2007-08-11','2007-08-12',);
$calendar->setTableWidth('100%');
$calendar->setDayNameFormat('%a');
eHow Internet Editor