Multiple different calendars on the same page
I've searched the forums, but haven't been able to find anything like what I'm looking for. I found one thread with some example code that doesn't really work, so I'll just get to my question.
I want to display multiple different calendars from different locations using different flatfiles on one page. When I include the calls to both showcalendar.php files, like so:
<?php require ("calendar/showcalendar.php"); ?>
<?php require ("edtech/calendar/showcalendar.php"); ?>
I get an error in my Apache server log stating:
[error] PHP Fatal error: Cannot redeclare showcal() (previously declared in /Library/WebServer/Documents/calendar/functions/escal.php:555) in /Library/WebServer/Documents/calendar/functions/escal.php on line 555
When I change $flatFileName to use a different flatfile, OverLIB doesn't work correctly. It still displays data from the first declared calendar ('calendar/showcalendar.php' instead of 'edtech/calendar/showcalendar.php'). The calendar appears correctly, but at the top of the page, before any of my HTML starts (because of my require statement in the header of the code).
I need to display nine different calendars on this page, but can't seem to figure out what to do. Of course, I need it by tomorrow afternoon, but I'm just going to take a lot of whacks at it.
Here's where the page is: http://www.creighton.k12.az.us/9calendars.php
Also, is it possible to concatenate the text from multiple flatfiles to create one master calendar? (i.e. for this project, we'd like to combine the calendars from 9 different schools into one calendar, but I didn't think this was possible... hence displaying all nine calendars on the same page.)