|
Posted by Ike on 05/16/05 03:06
"Oli Filth" <catch@olifilth.co.uk> wrote in message
news:aLQhe.6448$f5.4311@newsfe6-win.ntli.net...
> Do you have a (short) example of a PHP script that has this problem?
>
>
> --
> Oli
Yes Oli, I am using phpScheduleIt and it is happening - bot only on one
server. On other servers, when I run it, It runs fine. Here is a short
example taken therefrom -Ike
<?php
/**
* Scheduler Application
* This file contians the scheduler application where
* users have an interface for reserving resources,
* viewing other reservations and modifying their own.
* @author Nick Korbel <lqqkout13@users.sourceforge.net>
* @version 06-24-04
* @package phpScheduleIt
*
* Copyright (C) 2003 - 2005 phpScheduleIt
* License: GPL, see LICENSE
*/
list($s_sec, $s_msec) = explode(' ', microtime()); // Start execution timer
/**
* Include Template class
*/
include_once('lib/Template.class.php');
/**
* Include scheduler-specific output functions
*/
include_once('lib/Schedule.class.php');
// Check that the user is logged in
if (!Auth::is_logged_in()) {
Auth::print_login_msg();
}
$t = new Template(translate('Online Scheduler'));
$s = new Schedule(isset($_GET['scheduleid']) ? $_GET['scheduleid'] : null);
// Print HTML headers
$t->printHTMLHeader();
// Print welcome box
$t->printWelcome();
// Begin main table
$t->startMain();
if ($s->isValid) {
$s->print_schedule();
// Print out links to jump to new date
$s->print_jump_links();
}
else {
$s->print_error();
}
// End main table
$t->endMain();
list($e_sec, $e_msec) = explode(' ', microtime()); // End execution timer
$tot = ((float)$e_sec + (float)$e_msec) - ((float)$s_sec + (float)$s_msec);
echo '<!--Schedule printout time: ' . sprintf('%.16f', $tot) . '
seconds-->';
// Print HTML footer
$t->printHTMLFooter();
?>
Navigation:
[Reply to this message]
|