|
-
Jul 2nd, 2001, 04:04 PM
#1
Thread Starter
Addicted Member
php: mysql connecting... (all please)
Hi all,
has anybody worked with mysql_pconnect and mysql_connect?
What's the difference?
I tested both with a php-server which connects to a sql-server and it seemed to me that a persistent connection is used nearly the same way as a normal connection, but another user can't use an existing p-connection. So where's the sense in it?
Thanks for your opinions,
Dennis.
Code that I author is neither elegant nor efficient. It is, however, functional. Once I get something that works, I'm generally satisfied with myself - I mean, if it works, that's good enough, right?
Originally posted by aknisely
Sorry, but I feel uncomfortable on CC with clothes on
__________________
The truth ... is out there!
-
Jul 29th, 2001, 03:10 PM
#2
A persistant connection is used when there is going to be a lot of connections being opened. If there's a persistant connection opened, and another connection is requested, it returns the link identifier for the existing connection rather than opening a new one and wasting valuable server resources.
-Dennis
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|