Query: ifx_connect
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IFX_CONNECT(3) 1 IFX_CONNECT(3) ifx_connect - Open Informix server connectionSYNOPSISresource ifx_connect ([string $database], [string $userid], [string $password])DESCRIPTIONifx_connect(3) establishes a connection to an Informix server. In case a second call is made to ifx_connect(3) with the same arguments, no new link will be established, but instead, the link identifier of the already opened link will be returned. 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 ifx_close(3).PARAMETERSAll of the arguments are optional, and if they're missing, defaults are taken from values supplied in php.ini (ifx.default_host for the host (Informix libraries will use INFORMIXSERVER environment value if not defined), ifx.default_user for user, ifx.default_password for the password (none if not defined). o $database - The database name, as a string. o $userid - The username, as a string. o $password - The password, as a string.RETURN VALUESReturns a connection identifier on success, or FALSE on error.EXAMPLESExample #1 Connect to a Informix database <?php $conn_id = ifx_connect ("mydb@ol_srv1", "imyself", "mypassword"); ?>SEE ALSOifx_pconnect(3), ifx_close(3). PHP Documentation Group IFX_CONNECT(3)
Related Man Pages |
---|
sybase_connect(3) - php |
mssql_connect(3) - php |
mssql_pconnect(3) - php |
pdo_informix-dsn(3) - php |
ingres_pconnect(3) - php |
Similar Topics in the Unix Linux Community |
---|
Unix/Informix and CTI |
Questions regarding a PANIC situation |
AIX 5.3 userid password length to 6 |
Kernel parameters for Informix on Open Server 6 |
Script for database task. |