PHP Question

Discussion in 'PHP' started by cancer10, Dec 10, 2007.

  1. #1
    Hi,

    I have this question in my mind and have been searching for its solution for days.

    A forum (developed in PHP/Mysql) which gets 10,000 hits per day. Which of the following connection would be most appropriate for such a high traffic forum Or it does not matter which ever is being used?

    mysql_connect()
    
    or
    
    mysql_pconnect()
    Code (markup):

    Also, will it matter if the forum is not made using objects and classes?
     
    cancer10, Dec 10, 2007 IP
  2. Paul Starsky

    Paul Starsky Peon

    Messages:
    10
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Using mysql_pconnect() you can get additional problems. Use it only if you exactly know why you want to use it.
     
    Paul Starsky, Dec 10, 2007 IP
  3. cancer10

    cancer10 Guest

    Messages:
    364
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What are the problems i can get with mysql_pconnect()

    Please explain
     
    cancer10, Dec 10, 2007 IP
  4. Paul Starsky

    Paul Starsky Peon

    Messages:
    10
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You better read comments on php.net/mysql_pconnect
     
    Paul Starsky, Dec 10, 2007 IP
  5. sm9ai

    sm9ai Active Member

    Messages:
    746
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    60
    #5
    Hits are largely irrelevant here. You really need to be looking at page views.

    One of my sites gets around 500,000 pageviews a month and I use the mysql_connect() without any problems.
     
    sm9ai, Dec 11, 2007 IP