php-general | 2001032
Date: 03/31/01
- Next message: Yasuo Ohgaki: "Re: [PHP] [Fwd: php...]"
- Previous message: Jon Jacob: "[PHP] RH7, Oracle 8i: Curiouser and Curiouser"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Can somebody please help me out??
I'm going nuts...
what's wrong with this piece of code?
<pre>
if(!isset($script_total_time))
{
// register the session variables to keep track of
step times
$script_total_time=(float)$total_time;
session_register("script_total_time");
$step_times_array[$step]=$total_time;
$step_times=serialize($step_times_array);
//echo "step_times=\"$step_times\""; <- this
echoes perfeclty
session_register("step_times");
}
else
{
// update session variables
$script_total_time+=(float)$total_time;
$step_times_array=unserialize($step_times);
$step_times_array[$step]=$total_time;
$step_times=serialize($step_times_array);
}
</pre>
why doesn't $step_times gets registered correctly? it always register an
empty var...
____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
- Next message: Yasuo Ohgaki: "Re: [PHP] [Fwd: php...]"
- Previous message: Jon Jacob: "[PHP] RH7, Oracle 8i: Curiouser and Curiouser"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

