You are here: Re: application level database connection « PHP Programming Language « IT news, forums, messages
Re: application level database connection

Posted by rich on 11/16/06 18:36

Erwin Moller wrote:
> Hi,
>
> I understood that if:
> - the same login-credentials (username/password)
> - from the same host
> are used in your scripts, the connection will be recycled if you use
> mysql_pconnect().
>
> Are you using pconnect?
>

No, I'm not. I think my biggest problem here that I don't fully
understand is how can I (or is it possible to) use a resource for
multiple instances of an object. I understand that something like a
static object will live throughout an object and it's children. But if
5 different processes open 5 different instances of the same object, is
it even possible in PHP to give them the same resource if they never
know about each other? I suppose if what you say about pconnect is
true, then you just answered my question.

Thanks for the other tips on indexing too.. that'll definitely help.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация