Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: max(zero, one)?
(Example: nine)

The Note You're Voting On

chris at ocproducts dot com
8 years ago
There's a separate port parameter, unlike mysql_connect. However, using host:port on the host parameter does actually work.

There is a caveat. If the host is 'localhost' then the port is ignored, whether you use a port parameter or the implicit syntax I mentioned above. This is because 'localhost' will make it use unix sockets rather than TCP/IP.

<< Back to user notes page

To Top