<HTML ><HEAD ><TITLE >ifx_close</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="Informix functions" HREF="ref.ifx.html"><LINK REL="PREVIOUS" TITLE="ifx_byteasvarchar" HREF="function.ifx-byteasvarchar.html"><LINK REL="NEXT" TITLE="ifx_connect" HREF="function.ifx-connect.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.ifx-byteasvarchar.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.ifx-connect.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.ifx-close" ></A >ifx_close</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN39570" ></A ><P > (PHP 3>= 3.0.3, PHP 4 )</P >ifx_close -- Close Informix connection</DIV ><DIV CLASS="refsect1" ><A NAME="AEN39573" ></A ><H2 >Description</H2 >int <B CLASS="methodname" >ifx_close</B > ( [int link_identifier])<BR ></BR ><P > Returns: always <TT CLASS="constant" ><B >TRUE</B ></TT >. </P ><P > <B CLASS="function" >ifx_close()</B > closes the link to an Informix database that's associated with the specified link identifier. If the link identifier isn't specified, the last opened link is assumed. </P ><P > Note that this isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution. </P ><P > <B CLASS="function" >ifx_close()</B > will not close persistent links generated by <A HREF="function.ifx-pconnect.html" ><B CLASS="function" >ifx_pconnect()</B ></A >. </P ><P > See also: <A HREF="function.ifx-connect.html" ><B CLASS="function" >ifx_connect()</B ></A >, and <A HREF="function.ifx-pconnect.html" ><B CLASS="function" >ifx_pconnect()</B ></A >. <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN39592" ></A ><P ><B >Example 1. Closing a Informix connection</B ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="php" >$conn_id = ifx_connect ("mydb@ol_srv", "itsme", "mypassword"); ... some queries and stuff ... ifx_close($conn_id);</PRE ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE > </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.ifx-byteasvarchar.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.ifx-connect.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >ifx_byteasvarchar</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.ifx.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >ifx_connect</TD ></TR ></TABLE ></DIV ></BODY ></HTML >