Re: [PHP] Session with microtime

2007-04-21 Thread tedd
At 11:56 AM -0500 4/20/07, Matthew Powell wrote: Panquekas wrote: On 20/04/07, Panquekas <[EMAIL PROTECTED]> wrote: I'm sorry, my mistake. What I tried to say is that the session_start() was on the top of the page, and the if( ) block was after that and the login script was even after t

RE: [PHP] Session with microtime

2007-04-21 Thread Tim
> -Message d'origine- > De : Matthew Powell [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 20 avril 2007 18:57 > À : php-general@lists.php.net > Objet : Re: [PHP] Session with microtime > > Panquekas wrote: > > On 20/04/07, Panquekas <[EMAIL PROTEC

Re: [PHP] Session with microtime

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 11:56 am, Matthew Powell wrote: > Am I the only one that uses 'session.auto_start = 1'? > > It saves me from worrying about that type of problem. It also causes some overhead if you've got a LOT of pages that are NOT using sessions... So you're not the ONLY one who uses it,

Re: [PHP] Session with microtime

2007-04-20 Thread Robert Cummings
On Fri, 2007-04-20 at 11:56 -0500, Matthew Powell wrote: > Panquekas wrote: > > On 20/04/07, Panquekas <[EMAIL PROTECTED]> wrote: > > > > > I'm sorry, my mistake. What I tried to say is that the session_start() was > > on the top of the page, and the if( ) block was after that and the login > >

Re: [PHP] Session with microtime

2007-04-20 Thread Matthew Powell
Panquekas wrote: > On 20/04/07, Panquekas <[EMAIL PROTECTED]> wrote: > I'm sorry, my mistake. What I tried to say is that the session_start() was > on the top of the page, and the if( ) block was after that and the login > script was even after the if( ), so the first thing to ran was the > sess

Re: [PHP] Session with microtime

2007-04-20 Thread Panquekas
On 20/04/07, Panquekas <[EMAIL PROTECTED]> wrote: On 19/04/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On Thu, April 19, 2007 11:32 am, Panquekas wrote: > > I'm writting a script where I use the function microtime with sessions > > and I > > have a problem. > > > > This is my code: > > >

Re: [PHP] Session with microtime

2007-04-20 Thread Panquekas
On 19/04/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Thu, April 19, 2007 11:32 am, Panquekas wrote: > I'm writting a script where I use the function microtime with sessions > and I > have a problem. > > This is my code: > > if( $_SESSION['uperm'] == '1' ){ > $t_start = microtime(1); > } >

Re: [PHP] Session with microtime

2007-04-19 Thread Richard Lynch
On Thu, April 19, 2007 11:32 am, Panquekas wrote: > I'm writting a script where I use the function microtime with sessions > and I > have a problem. > > This is my code: > > if( $_SESSION['uperm'] == '1' ){ > $t_start = microtime(1); > } > > () > > if( $_SESSION['uperm'] == '1' ){ > $t_end

[Fwd: Re: [PHP] Session with microtime]

2007-04-19 Thread Jim Lucas
Panquekas wrote: It's d0ne, thank you very much! No problem, just remember to reply on list next time. It was what you were saying, the $_SESSION['uperm'] wasn't being define in the first place, I moved my login script above that "if" and it work it out. And thanks for that "trick" of erro

Re: [PHP] Session with microtime

2007-04-19 Thread Jim Lucas
Panquekas wrote: hello, I'm writting a script where I use the function microtime with sessions and I have a problem. This is my code: if( $_SESSION['uperm'] == '1' ){ $t_start = microtime(1); } when you initially log in, it creates this variable. Sounds to me like it is creating the $_SES