I read this answer here which explains how to output an ical file of scheduled items:
How can I use PHP to dynamically publish an ical file to be read by Google Calendar?
My question is what is the ical format for recurring events? Let's say i want to schedule a team meeting every monday at 10 am. What is the ical format for a repeating schedule? Or do i need to print X number of events into the future?
the ical format is defined by the RFC5545: http://tools.ietf.org/html/rfc5545
in your case you will need to define only one event and make use of the FREQ property (FREQ=WEEKLY) and COUNT property (COUNT=X)
RRULE:FREQ=WEEKLY;BYDAY=MO;COUNT=X
see http://tools.ietf.org/html/rfc5545#section-3.3.10 for more details.