> I use connect, I have never really looked at pconnect, probably simply
> because it 'feels' more complicated.  You have to check that there is a
> connection, because not everyone enters my sites via the home page, so
> there is no-where obvious to place pconnect, and my websites have
> connections on most pages.  I should really look at pconnect...

I've used mysql_pconnect() in the far past because I thougth it would be 
faster and more l33t. But if the site went through a stress testing I 
sometimes got the "too many connections" error. In that past I was not able 
to fix that problem, so I switched to mysql_connect() and I'm still using it 
without any problems. mysql_connect() seems to be as fast as 
mysql_pconnect() as far I was able to meter it.

Now I am more skilled and migth find out why mysql_pconnect() missed the 
spot. But I'm happy with mysql_connect() so I use my time for jobs I get 
payed for. But if somebody really knows how mysql_pconnect() was ment to be 
used and how to avoid the "too many connections" error please tell us! (and 
me) ;)

-- OT
Hey Liz, We were counting cocktails and beer last year... What was the 
actual score? Maybe I'll spend some freetime in your country in the near 
future. Then we will have to work down the score. Flying gets cheaper and 
cheaper. ;)
-- OT -- 



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to