View Single Post
  #6 (permalink)  
Old 02-09-2009, 07:08 AM
Carl Carl is offline
New Member
 
Posts: 3
Default PHP ICS parsing

I found some PHP code for parsing the ICS files to get the title, description, location, and dates, which is fairly basic (the only trouble is the VALARM which has a description field that duplicates the field name from the event). I added the extracted data to a database table and created an object class for my calendar events. I'm using CURL to parse the ICS files every 60 minutes to keep the data fairly current. The ICS files have a sequence number that lets me know when an event has been updated so I can update it in my database. Each event has a unique UID, so I can tell if an event is new or already exists in my database table. It works great with test calendar events. I'll have to wait and see how it works with actual calendar events (there will be a lot more of them than I have in my test database table).

Carl Olsen
Drake University
Reply With Quote