标签:explicit create eve res sql source parameter blank make
in this passage, we slove the problem about Mysql_connect. first, let‘ see an example:
resource mysql_connect ([ string $server = ini_get("mysql.default_host") [, string $username = ini_get("mysql.default_user") [, string $password = ini_get("mysql.default_password") [, bool $new_link = false [, int $client_flags = 0 ]]]]] )
Note: Whenever you specify "localhost" or "localhost:port" as server, the MySQL client library will override this and try to connect to a local socket (named pipe on Windows). If you want to use TCP/IP, use "127.0.0.1" instead of "localhost". If the MySQL client library tries to connect to the wrong local socket, you should set the correct path as in your PHP configuration and leave the server field blank. Note: The link to the server will be closed as soon as the execution of the script ends, unless it‘s closed earlier by explicitly calling mysql_close().
Note: You can suppress the error message on failure by prepending a @ to the function name.
Note: Error "Can‘t create TCP/IP socket (10106)" usually means that the variables_order configure directive doesn‘t contain character E. On Windows, if the environment is not copied the SYSTEMROOT environment variable won‘t be available and PHP will have problems loading Winsock. [from phpcom]
标签:explicit create eve res sql source parameter blank make
原文地址:http://www.cnblogs.com/empist/p/6114168.html