logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the difference between mysql_connect and mysql_pconnect?


  • Correct Answer
  • There is a decent page in the php manual on the subject, in short mysql_pconnect() makes a persevering association with the database which implies a SQL join that don't close when the execution of your script closes mysql_connect()provides just for the database new association while utilizing mysql_pconnect , the capacity would first attempt to locate a (relentless) connection that is as of now open with the same host, username and password On the off chance that one is found, an identifier for it will be returned as opposed to opening another connection the connection with the SQL server won't be terminated when the execution of the script ends Rather, the link will stay open for future use 

  • Tags: Database Administrator

    Technology problems


    Search Results


    • 1. What is the difference between using copy() and move() function in php file uploading?
    • Discuss
    • 2. Explain the working with directories using opendir(), readdirs(), closedir() along with examples.
    • Discuss
    • 3. Explain the changing file permission and ownership using PHP's chmod() function.
    • Discuss
    • 4. How can we encrypt the username and password using PHP?
    • Discuss
    • 5. What Is a Session in PHP?
    • Discuss
    • 6. What do you mean by a deadlock?
    • Discuss
    • 7. What is Control File used for?
    • Discuss
    • 8. List the various Oracle database objects.
    • Discuss
    • 9. Explain i) Rename ii) Alias.
    • Discuss
    • 10. What is a view?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment