Can anybody recommend a script/some code to take an iCalendar Calendar File and output in plain text the events on that day?
Current Code
<?php
/**
* This example demonstrates how the Ics-Parser should be used.
*
* PHP Version 5
*
* @category Example
* @package Ics-parser
* @author Martin Thoma <info@martin-thoma.de>
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @version SVN: <svn_id>
* @link http://code.google.com/p/ics-parser/
* @example $ical = new ical('MyCal.ics');
* print_r( $ical->get_event_array() );
*/
require 'class.iCalReader.php';
$ical = new ICal('THE URL');
$events = $ical->events();
$date = $events[0]['DTSTART'];
foreach ($events as $event) {
echo "".$event['SUMMARY']."<br/>";
}
?>
<style>
body
{
font-family: Segan;
}
</style>
I recommend ICS-Parser.
It does a very good job of converting the ICS into an array you can loop through and print how you like, an example is on their website.