Re: mysql_pconnect options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kathy Mazur Worden wrote:
I'm setting up a webserver for failover on Linux/Apache and am running
into problems getting mysql_pconnect to work.  The primary webserver
(also Linux/Apache) connects to the local MySQL server using:

$Conn = mysql_pconnect("localhost", "user", "password", false, 2) or
die("Could not connect : " . mysql_error());

RTM (http://au2.php.net/mysql_pconnect).

The syntax is different to mysql_connect.

resource mysql_pconnect ([ string $server [, string $username [, string $password [, int $client_flags ]]]] )

After the password, there are client flags and nothing else ("new link" has no meaning with pconnect).

--
Postgresql & php tutorials
http://www.designmagick.com/


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux