Results 1 to 2 of 2

Thread: php: mysql connecting... (all please)

  1. #1

    Thread Starter
    Addicted Member dmr's Avatar
    Join Date
    Jul 2000
    Location
    West-Germany :) Timezone: GMT +1 [DST] North.......: 52° 16’ 09” East...: 10° 31’ 16”
    Posts
    255

    Thumbs up 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!

  2. #2
    denniswrenn
    Guest
    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
  •  



Click Here to Expand Forum to Full Width