PDA

View Full Version : path to calendar.php


DawnB
11-12-2006, 12:05 AM
I set up a file and I'm trying to call up the calendar.php file. It doesn't seem to matter whether if I put the file in the same directory as the calendar.php or or one level up outside of the directory, I am unable to call up the calendar with a relative path - with the absolute path I have been able to get the calendar to appear, but with the relative path it's just a blank page.

When it's in the same sub-directory, I have this relative path:

<?php $OL=1; require("calendar.php"); ?>

Thanks,

Dawn

Brian
11-12-2006, 12:59 AM
Do you have have all three calendar.php requires in your page, or just the one in your post?

ve9gra
11-13-2006, 06:16 PM
Remember that there are three calls that are required to make the calendar appear correctly. The first one ($CSS) to load the CSS for the styling of the calendar, the second ($OL) to load the overLib code, and the third (with nothing before require) to finally make the calendar show up.