Pconnect, the API for client Connection server in Phpredis.The connection is not being closed on close or end of request until the PHP process ends.This is the original phrase in the API descriptionSo here's the question:1. does PHP process ends
The following three ways to connect
1. Create a singleton class with the mysql_connect () function
2. Establish a long connection directly using the Mysql_pconnect ()
3. Establish a database connection class, instantiate the time to establish a
Pconnect, the API for client Connection server in Phpredis.
The connection is not is closed on "close" or end of request until the PHP process ends.This is the original sentence in the API description
So here's the question:1. PHP process ends
Php pconnect () PHP in ?? MYSQL? R has ??? FUNCTION CONNECT? PCONNECT ???? Difference of function? Where is e?
PHP ?? MYSQL? R has ??? FUNCTIONCONNECT? PCONNECT???? Difference of function? Where is e ??Average ?? Eclipse and failover? Br/> What
PHP ?? MYSQL? R has ??? FUNCTIONCONNECT? PCONNECT ???? Difference of function? Where is e ?? Average ?? Eclipse and failover? CONNECT is holding? Sexual? Connect, PHP ?? Already} used? Exist? Expected? Listen B? But why ?? Continue, OK? ? How often
PHP has two function when it connects MySQLConnect and PconnectWhere are the differences between these two functions?The general standard answers are:Pconnect is a continuous connection, and PHP will duplicate the existing data library
Ecshop default is the normal connection method, from the error shows that you are using the pconnet way, this way when the concurrency ratio is large, there are the following shielding end:Apache Module Mode:The difference is that when PHP is
A few days ago encountered such a problem, PHP code unchanged, the requested parameters fixed. But
The first request, returns the data to be normal;
Second request, incorrect return data;
Third request, the returned data is not the same as the
MySQL database PHP
The manual says there are two major differences.
1. Do not repeatedly make connection requests
2.mysql_close doesn't work.
The 1th is a little confused. That is not my mysql_connect not to make a request or halfway mysql_close
Talk about the difference between mysql_connect and Mysql_pconnect, the two functions of the use of the same, the internet has said should be used Pconnect, pconnect is a good thing, also see pconnect as a scourge, resolutely not to use pconnect,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.