Opens a persistent connection to Adaptive Server.
sybase_pconnect() supports DSN style connection
properties. When it is called with the parameter
servername only,
servername is expected to contain a valid DSN string.
Note: If a persistent
connection has been previously opened with the same arguments as this call, an identifier for
the existing connection gets returned instead of opening a new connection.
Syntax
resource sybase_pconnect([string $servername
[, string $username
[, string $password
]]] )
Parameters
- $servername – when sybase_connect() is called with more than this parameter, then
$servername contains a server defined in the relevant Sybase directory
service. When sybase_connect() is called with only this parameter, then
$servername contains a valid DSN connection string of syntax:
param1=val1;param2=val2;...
- $username – the name of the user account used to login to Adaptive Server.
- $password – the password of the user account used to login to Adaptive
Server.
Returns
A positive connection identifier on success.
FALSE – on failure.