Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2011

    Unanswered: f on one system have user connect as pconnect with new connect...

    f have a website use pconnect function(by another programer.)?
    I can use new (non pconnect)connect function() with same user login name by pconnect.

    please explain me. thank you.

  2. #2
    Join Date
    Nov 2004
    out on a limb
    Provided Answers: 59
    pconnect allows for pooling / sharing of connections, through a Persistent Connection
    it can reduces the overhead in running a script, as the script doesn't have to instantiate the connection to the DB
    pconnect should be used sparingly, but if your script is connecting to the same database host using the same userid and password. if you know

    if pconnect cannot find an existing connection it will create one in the same way as connect.

    see PHP: Persistent Database Connections - Manual
    I'd rather be riding on the Tiger 800 or the Norton

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts