mjweissman.org
08-18-2006, 01:02 PM
I had been having some PHP timeout problems with our mambo site, and our ISP said the timeouts were caused (in part) by the repeated PHP "require" statements in mod_escal:
<?php $CSS=1; require ("modules/calendar/calendar.php"); ?>
<?php // $OL=1; require ("modules/calendar/calendar.php"); ?>
<table align="center">
<tr><td>
<?php require ("modules/calendar/calendar.php"); ?>
I wonder if someone can explain what exactly is going on there. As above, I more or less get what I need. If I set CSS=0, the mini-calendar is actually shown twice on the home page; if I set CSS=0 I need to comment out the immediately following require statement to get normal behavior.
<?php $CSS=1; require ("modules/calendar/calendar.php"); ?>
<?php // $OL=1; require ("modules/calendar/calendar.php"); ?>
<table align="center">
<tr><td>
<?php require ("modules/calendar/calendar.php"); ?>
I wonder if someone can explain what exactly is going on there. As above, I more or less get what I need. If I set CSS=0, the mini-calendar is actually shown twice on the home page; if I set CSS=0 I need to comment out the immediately following require statement to get normal behavior.