[release] Icalendar Parser

I've been making a site where I needed to be able to update a fixture list easily, and I couldn't use a database to to hosting restrictions. So I give you the iCal parser! It can read and parse the files generated by iCal and Outlook and process them using PHP..

Basically it is a single function. You feed it the filename of an .ics file as a parameter, it returns an array containing more arrays. Each of these second arrays contains a fair bit of info on the event.

HOWEVER, it does not parse all iCalendar properties, only the ones I needed for this project. You can see which ones this is from the code. Others will simply be ignored.

Feel free to use this file as a base for your own projects, I'd be grateful if you could drop me a line (ludge *at* spymac *dot* com) saying where you use it if you find it helpful. I used RFC2445 as a reference for the file format, so if you need a pointer on this sort of thing, there it is. Also, I'll probably release any updates and improvements as I make them.

Hope somebody can use this.

Ludge.

#208104

Great Great Great. - I'm goin' to include it on my page (I mark it as your work and put you to the Thank you-lst, when it's included)

#208248

Looks great ludge, might prove useful In a Merlin trouble we have planned,

#208272

Thanks guys, glad it might be of use. I'm going to be adding support for a few more bits and bobs soon, namely time zones, recurring events and alarms. I'll post it here when it's done.

#208273

sound great - can't wait ;):)

#208445