1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Rep Power
    What is better to use ???
    mysql_connect or mysql_pconnect

  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    England, UK
    Rep Power
    I use mysql_connect, I've never heard of mysql_pconnect

    Tell me more...

    Girish Gupta
    webmaster@musicgoeson.com http://www.musicgoeson.com/
  4. #3
  5. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Niagara Falls (On the wrong side of the gorge)
    Rep Power
    pconnect() reduces the overhead of creating a new connection from PHP to MySQL by using an existing connection. Of course, this only works with using PHP as a server module.

    So, if you are using PHP CGI, pconnect has no benefit.

Similar Threads

  1. Need advice designing a usage tracking database (MySQL)
    By Randolpho in forum Database Management
    Replies: 0
    Last Post: February 13th, 2004, 04:11 PM
  2. Custom error message for MySQL connection
    By dbr1066 in forum PHP Development
    Replies: 6
    Last Post: February 12th, 2004, 11:25 AM
  3. Replies: 3
    Last Post: February 11th, 2004, 08:30 AM
  4. java / mysql connection
    By johann8401 in forum Java Help
    Replies: 2
    Last Post: February 9th, 2004, 12:27 PM
  5. MYSQL connection to JSP (not again!! :) )
    By JSP_Neubee in forum Java Help
    Replies: 1
    Last Post: January 20th, 2004, 08:34 AM

IMN logo majestic logo threadwatch logo seochat tools logo