|
PHP5中文手册
maxdb_real_connectmaxdb->real_connect(PECL maxdb:1.0-7.6.00.38) maxdb->real_connect — Opens a connection to a MaxDB server 说明Procedural style
bool maxdb_real_connect
( resource $link
[, string $hostname
[, string $username
[, string $passwd
[, string $dbname
[, int $port
[, string $socket
]]]]]] )
Object oriented style (method) maxdb
bool
real_connect
([ string $hostname
[, string $username
[, string $passwd
[, string $dbname
[, int $port
[, string $socket
]]]]]] )
maxdb_real_connect() attempts to establish a connection to a MaxDB database engine running on hostname . This function differs from maxdb_connect():
返回值如果成功则返回 TRUE,失败则返回 FALSE。 范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php The above examples would produce the following output:
|