Database question

This is a discussion on Database question within the PHP General forums, part of the PHP Programming Forums category; Hi Group, Currently i am connecting the underlying database server from every php page. To reduce the connection overhead i ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-03-2003
Hardik Doshi
 
Posts: n/a
Default Database question

Hi Group,

Currently i am connecting the underlying database
server from every php page. To reduce the connection
overhead i am thinking to store the PEAR DB object
into the registry (session) at the time of user login.
Here i am connecting the Database only one time and
rest of the time i am using the object stored in the
memory. Even this is more helpful when the application
is connecting more than one database..My application
is getting feed from four different databases reside
on two different servers.

I don't know what ever i am thinking is correct or
not.. Please guide me if i am wrong anywhere and if
any one of you have better idea then please disucss.

Thanks

Hardik Doshi

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
Reply With Quote
  #2 (permalink)  
Old 07-03-2003
Pete Morganic
 
Posts: n/a
Default Re: Database question

definately do NOT recommend this path-
Just make an include file at the top of each page

pete

Hardik Doshi wrote:
> Hi Group,
>
> Currently i am connecting the underlying database
> server from every php page. To reduce the connection
> overhead i am thinking to store the PEAR DB object
> into the registry (session) at the time of user login.
> Here i am connecting the Database only one time and
> rest of the time i am using the object stored in the
> memory. Even this is more helpful when the application
> is connecting more than one database..My application
> is getting feed from four different databases reside
> on two different servers.
>
> I don't know what ever i am thinking is correct or
> not.. Please guide me if i am wrong anywhere and if
> any one of you have better idea then please disucss.
>
> Thanks
>
> Hardik Doshi
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:53 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0