★ wanayoo — archive 1999 http://fr.php.net/manual/function.ifx-connect.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Informix
Quick Reference
English version of this pageGerman version of this pageJapanese version of this page
Italian version of this pageFrench version of this pageHungarian version of this page
Spanish version of this pageDutch version of this pageBrazilian Portuguese version of this page
Korean version of this pageCzech version of this page
Informix
* ifx_connect
* ifx_pconnect
* ifx_close
* ifx_query
* ifx_prepare
* ifx_do
* ifx_error
* ifx_errormsg
* ifx_affected_rows
* ifx_getsqlca
* ifx_fetch_row
* ifx_htmltbl_result
* ifx_fieldtypes
* ifx_fieldproperties
* ifx_num_fields
* ifx_num_rows
* ifx_free_result
* ifx_create_char
* ifx_free_char
* ifx_update_char
* ifx_get_char
* ifx_create_blob
* ifx_copy_blob
* ifx_free_blob
* ifx_get_blob
* ifx_update_blob
* ifx_blobinfile_mode
* ifx_textasvarchar
* ifx_byteasvarchar
* ifx_nullformat
* ifxus_create_slob
* ifxus_free_slob
* ifxus_close_slob
* ifxus_open_slob
* ifxus_tell_slob
* ifxus_seek_slob
* ifxus_read_slob
* ifxus_write_slob

  Thanks to:
 Chek.com
 easyDNS
 VA Linux Systems

  Related sites:
Apache
MySQL
PostgreSQL
Zend Tech.

  Community:
LinuxFund.org
OSDN
Manual: ifx_connect
View the source code for this pageSearch the site



Previous page
 Informix
 Updated
Mon, 08 Jan 2001
ifx_pconnect 
Next page


ifx_connect

(PHP 3>= 3.0.3, PHP 4 )

ifx_connect -- Open Informix server connection

Description

int ifx_connect ([string database [, string userid [, string password]]])

Returns a connection identifier on success, or FALSE on error.

ifx_connect() establishes a connection to an Informix server. All of the arguments are optional, and if they're missing, defaults are taken from values supplied in configuration file (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).

In case a second call is made to ifx_connect() 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().

See also ifx_pconnect(), and ifx_close().

Example 1. Connect to a Informix database


$conn_id = ifx_connect ("mydb@ol_srv1", "imyself", "mypassword");
      


 About Notes


Previous page
 Informix
 Updated
Mon, 08 Jan 2001
ifx_pconnect 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
France
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.