Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Re: Making a da...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 3056 of 3323
Post > Topic >>

Re: Making a database connection persists in PHP

by mike.swierczek@[EMAIL PROTECTED] ("Michael Swierczek") Mar 31, 2008 at 10:10 PM

Mary,
     I think this is more of a PHP question than a Postgres question.
I believe you can put the question in a session variable.   You may
also want to investigate connection pooling, where your application
keeps a set of open connections and then each time a request needs a
connection, it grabs one from the pool, uses it, and then gives it
back.   A web search on connection pooling and PHP should tell you
what you need.
     Good luck.

-Mike

On 3/31/08, Mary Anderson <maryfran@[EMAIL PROTECTED]
> wrote:
> Hi all,
>     Don't know if this should go to the PHP group or the postgresql
group
>
>     I am writing a PHP-postgres application.  I would like to have a
>  database connection persists across php pages.  What the application
>  does at present is to create a new connection every time a new page is
>  called.  Can I put a connection into a session variable?
>
>     Thanks
>
>  Mary Anderson
>
>
>  --
>  Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
>  To make changes to your subscription:
>  http://www.postgresql.org/mailpref/pgsql-novice
>

-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 2 Posts in Topic:
Making a database connection persists in PHP
maryfran@[EMAIL PROTECTED  2008-03-31 16:48:17 
Re: Making a database connection persists in PHP
mike.swierczek@[EMAIL PRO  2008-03-31 22:10:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 4:49:13 CST 2008.