How to write an .ics?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
$var
Forum Contributor
Posts: 317
Joined: Thu Aug 18, 2005 8:30 pm
Location: Toronto

How to write an .ics?

Post by $var »

i found that if you open an .ics in notepad, it displays exactly what i suspected, a bunch of perimeters that make up the calendar file:

Code: Select all

BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART:20070312T190000Z
DTEND:20070312T200000Z
LOCATION:Honeycomb Web Conference
TRANSP:OPAQUE
SEQUENCE:0
UID:040000008200E00074C5B7101A82E00800000000807661EA1246C7010000000000000000100
 00000E8F6D8611C85D54A951FD1FF84FB215D
DTSTAMP:200700312T220906Z
DESCRIPTION:Today\, Monday\, March 12th \n\niCal Test - Email Marketing Test:\n“Email Marketing Benchmarks: New 2007 Research on Effective
  Email Marketing
  Tactics”\nhttp://www.xtalks.com/downloads/marketing/email_webinar_0227
 07.ppt\n\n\n“Email Marketing Benchmarks: New 2007 Research on Effective
  Email Marketing Tactics”\n\nPresented by:\nAnne Holland\, Founder &
  President\, MarketingSherpa\nStefan Tornquist\, Research Director\,
  MarketingSherpa\nMikel Chertudi\, Director of Online Marketing\,
  Omniture\n\n
SUMMARY:Honeycomb Test Summary
PRIORITY:5
X-MICROSOFT-CDO-IMPORTANCE:1
CLASS:PUBLIC
BEGIN:VALARM
TRIGGER:-PT120M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR
however, it get a strange error message about switching it from lunar to gregorian? (sounds a little poetic for microsoft) ... i'm guessing that you can't just save an .ics for notepad. How do you write an iCal? and then, how do you dynamically write an iCal?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

tools like http://phpicalendar.net/documentation/i ... /Main_Page may come in handy too....
Post Reply