From: Blaine C. <la...@us...> - 2005-02-25 18:35:27
|
There was a recently applied patch to the RSS feeds that allows you to get an arbitrary x days; if you're using PHP (as I assume you are), use MagpieRSS ( http://magpierss.sf.net ) to fetch the RSS feeds, and you have exactly what you're looking for, available at almost zero dependency cost within whatever code you're working on. If that still doesn't make sense, let me know and I'll post some running code. b. On Feb 25, 2005, at 6:43 AM, Ben Francis wrote: > ===Aim=== > > I'm also working on a kind of "phpicalendar lite" as mentioned > previously on the list but I called it content management. > > I want to be able to generate a web page showing the next few events > coming up with a title, description, start date and time, end date and > time if applicable and which calendar they've come from. > > ===Problems=== > > I'm struggling a little with manipulating the master_array returned by > ical_parser.php. It would make more sense in my head if I could get > from the multidimensional format of the master_array which is > something like... > > [20050222] => Array > ( > ... > to something more like a flat table.... > > [8D69CBD9-8664-11D9-8CFA-000D936C280E-RID] => Array > ( > ... > > ===Other Questions=== > > 1) What are the dependencies of the ical_parser.php file? Does it rely > on any files other than init.incs.php, date_functions.php, > draw_functions.php, overlapping_events.php and timezones.php? If not, > can I use the functions directory on its own without the rest of > phpicalendar in an entirely separate directory? > > 2) I'd really like to be able to associate images with events and I'm > not sure how to achieve this. Perhaps I could create a directory of > images with the directory name matching the UID of the events. Or > perhaps I should generate a MySQL database from the .ics file with > UIDs and fields for image paths. I could even create a table from the > array I'm trying to create and store all the calendar data in the > database to increase the speed of execution. > > There's a good chance I'm approaching this in entirely the wrong way. > If so, please put me out of my misery! > > Thanks > > tola |