Linux Systems Administrator
Jupitermedia
US-AZ-Tucson

Justtechjobs.com Post A Job | Post A Resume

Using PHP to Make Basic vCalendar/iCalendar Events
by: Shu-wai Chow
If you maintain a web calendar, the vCalendar/iCalendar specifications can help you share calendar events with users through your site. By clicking on a simple link to a text file, your events can be added to your users' Outlook, Palm Desktop, or scheduling program of their choice. Such an application can be easy, simple, and automated if the event data is stored in a database, and the text file is formatted to the vCalendar/iCalendar specification with any scripting language.
The vCalendar and iCalendar specifications are designed for platform and device neutral sharing of calendar and to-do items. Since its inception, the vCalendar specification has quietly gained ubiquitous support in software applications and spawned its successor, the iCalendar format. Most of the popular calendaring programs such as Outlook, Palm Desktop, and LotusNotes support one or both formats. Recently, iCalendar gained a big endorsement by being used to power Apple's iCal program.
In this article, I will run through the basic script setups needed, give a basic introduction to key vCalendar elements, and use PHP to format an example event. By the end, you should be able to share your calendars online.
Should I Use vCalendar or iCalendar?
As with most things in life, it depends. vCalendar has been around longer and enjoys wider adoption. Most software calendaring programs (iCal, Outlook 2000+ for Windows) support both vCalendar and iCalendar, some (Palm Desktop, Outlook 97) support only vCalendar, and a handful (Outlook and Entourage for Macintosh) support only iCalendar. Most of your WAP calendaring applications also support vCalendar.
On the other hand, iCalendar is the format of the future. The Outlook products have picked up iCalendar support and so will the next version of LotusNotes. Apache has default support for iCalendar enabled, but not vCalendar. If you're developing for vCalendar now, be aware of iCalendar.
Since this is an introductory article, I will be using the vCalendar specification in all of my examples with iCalendar exceptions noted. vCalendar is simpler than iCalendar and the official specifications are much more layman-friendly to read. iCalendar is based on vCalendar sort of like Java is based on C. Therefore, if you want to migrate to iCalendar later, it will be a flatter learner curve.
Next Page


Comments:
iCal and Email (outlook)Paul McMahon11/03/07 06:22
Scheduler/ CalendarDarlene02/13/06 13:57
event icalendararbind kumar12/09/05 08:44
Multiple Events/Calendar Export?Judah Anthony10/17/05 19:42
subcription and multiple dates?Jody Whitesides08/25/05 16:29
Web CalendarHarish Balakrishnan08/12/05 23:56
articlePiotr Tomaszewski12/02/04 16:34
Multiple EventsSteve Godwin12/12/03 23:40
RE: TimeZone issue in Outlook 2000roger11/17/03 16:43
RE: iCal and emailChristian Berg05/06/03 11:18
iCalendar extension for PHPJoakim Recht02/18/03 19:46
Hex ValueJames Jeffers12/10/02 17:26
RE: TimeZone issue in Outlook 2000Shu-Wai Chow10/26/02 01:55
TimeZone issue in Outlook 2000Jeff10/23/02 20:59
RE: whats wrong with my output?Shu-Wai Chow10/22/02 10:23
RE: whats wrong with my output?Flaimo10/21/02 20:21
whats wrong with my output?Flaimo10/19/02 16:00
RE: iCal and emailShu-Wai Chow10/18/02 16:41
iCal and emailGrok10/12/02 20:03
RE: not ok for MozillaShu-Wai Chow10/11/02 16:15
RE: not ok for Mozillayves10/11/02 15:45
RE: not ok for MozillaShu-Wai Chow10/10/02 15:14
not ok for MozillaYves Glodt10/09/02 04:37
event calendersubash10/08/02 02:48
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.