Hello, I am trying to figure out how to use php to extract dates and other information from ical files. I'm good enough at php but am inexperienced at working with files in general.
What I want to do is display all the dates of training sessions on a training course page. So I would have to find all events in the ical which match the current course and display only the dates and times of the events.
Looking at the file, I can see that it seems to have field names and values delimited by colons and semi-colons and encapsulating tags like
BEGIN:VEVENT
// content tags
END:VEVENT
So if I could somehow set the events up as a multidimensional array I could call and order the data how I wish. Seems an performance-heavy way to do it though, since I'd have to call up all the data to sift through the few correct entries to display dates and links to their pages on phpical but I think my webserver can handle it for the volume of courses being entered.
Any help or links to tutorials would be greatly appreciated. Even direction to a php function to get me started would help. Thanks.