shi_bmz
07-28-2003, 10:59 PM
I'm having trouble with the following code:
// first time through the page:
$start_time = mktime();
session_register('start_time');
...
// second time through:
$T01 = mktime() - $start_time;
session_register('T01');
...
// third time through:
$T02 = mktime() - $T01;
session_register('T02');
...
when I subtract $start_time from each consecutive $T0x timestamp I get the expected result.
However when I subtract $T01 from $T02 etc, every other result is a very large number, as if it came out negative and is being represented as an unsigned int.
Can anyone suggest what's going on?
thanks,
Shi.
// first time through the page:
$start_time = mktime();
session_register('start_time');
...
// second time through:
$T01 = mktime() - $start_time;
session_register('T01');
...
// third time through:
$T02 = mktime() - $T01;
session_register('T02');
...
when I subtract $start_time from each consecutive $T0x timestamp I get the expected result.
However when I subtract $T01 from $T02 etc, every other result is a very large number, as if it came out negative and is being represented as an unsigned int.
Can anyone suggest what's going on?
thanks,
Shi.
