Posted by rf on 04/29/07 13:48
"john" <puopolo@gmail.com> wrote in message
news:1177851382.764835.310600@y80g2000hsf.googlegroups.com...
> All:
>
> I have a MS background and am having fun in the open source world of
> PHP and MySQL --- and I have a question.
>
> With PHP and MySQL, is it considered better practice to open a single
> database connection and re-use it throughout the life of the
> application (simple Web application - low traffic), or is it better to
> open a connection, use it and close it as needed?
Define "application".
In the context of the stateless http protocol there is no "application".
There are only individual seperate request to get a specific page at a
specific URL.
--
Richard.
[Back to original message]
|