PHP Developer’s Dictionary IT-SC book 415 The ifx_free_slob() function, which is available in PHP 3.0.3 through PHP 3.0.16 along with PHP 4.0 and higher, deletes the SLOB object referenced by the bid parameter. The return value is TRUE on success and FALSE otherwise. ifxus_close_slob() Syntax int ifxus_close_slob (int bid) Description The ifxus_close_slob() function, which is available in PHP 3.0.4 through PHP 3.0.16 along with PHP 4.0 and higher, deletes the SLOB object referenced by the bid parameter and returns TRUE on success and FALSE otherwise. ifxus_open_slob() Syntax int ifxus_open_slob (long bid, int mode) Description The ifxus_open_slob() function, which is available in PHP 3.0.4 through PHP 3.0.16 along with PHP 4.0 and higher, opens an existing SLOB object referenced by the bid parameter. The mode parameter accepts the following values: 1 = LO_RDONLY , 2 = LO_WRONLY, 4 = LO_APPEND, 8 = LO_RDWR, 16 = LO_BUFFER, 32 = LO_NOBUFFER -> or-mask . The return is value is the SLOB object ID or FALSE on error. ifxus_tell_slob() Syntax int ifxus_tell_slob (long bid) Description The ifxus_tell_slob() function, which is available in PHP 3.0.4 through PHP 3.0.16 along with PHP 4.0 and higher, returns the current file or seek position of the open PHP Developer’s Dictionary IT-SC book 416 SLOB object referenced by the bid parameter. The return value will be FALSE if an error occurs. ifxus_seek_slob() Syntax int ifxus_seek_blob (long bid , int mode , long offset ) Description The ifxus_seek_slob() function, which is available in PHP 3.0.4 through PHP 3.0.16 along with PHP 4.0 and higher, sets the current file or seek position of the open SLOB object referenced by the bid parameter. The possible mode values are 0 for LO_SEEK_SET , 1 for LO_SEEK_CUR , and 2 for LO_SEEK_END . The offset parameter is represented in bytes. The return value will be FALSE if an error occurs; otherwise, the return value will be the new seek position. ifxus_read_slob() Syntax int ifxus_read_slob (long bid, long nbytes) Description The ifxus_read_slob() function, which is available in PHP 3.0.4 through PHP 3.0.16 along with PHP 4.0 and higher, reads from the SLOB object referenced by the bid parameter the number of bytes indicated by the nbytes parameter. The return value is the string on success; otherwise, the return value is FALSE. ifxus_write_slob() Syntax int ifxus_write_slob (long bid, string content) Description The ifxus_write_slob () function, which is available in PHP 3.0.4 through PHP 3.0.16 along with PHP 4.0 and higher, writes the content parameter into the SLOB PHP Developer’s Dictionary IT-SC book 417 object referenced by the bid parameter. The return value is the number of bytes written or FALSE on failure. InterBase The InterBase functions enable you to access data in an InterBase database, which is a product of Borland/Inprise. More information can be found at http://www.interbase.com . ibase_connect() Syntax int ibase_connect (string database [,string username [,string password [, string charset [, int buffers [, int dialect [, string role ]]]]]]) Description The ibase_connect() function, which is available in PHP 3.0.6 through PHP 3.0.16 along with PHP 4.0 and higher, establishes a connection to an InterBase server. The database parameter should be a valid path to a database file on the server on which the file resides. If the file is on another machine, it must be prefixed in one of the following manners: 'hostname:' for TCP/IP, '//hostname/' for NetBEUI, or 'hostname@' for IPX/SPX. The optional username and password parameters can also be set using the PHP configuration directives ibase.default_user and ibase.default_password , respectively. The charset parameter indicates the default character set for the database and buffers indicates the number of database buffers to allocate for the server-side cache. If buffers is set to 0 or omitted, the server uses its own default. The dialect parameter sets the default SQL dialect for any statement executed within a connection, and defaults to the highest one supported by the client libraries. If another call is made with the same arguments, a previously opened connection will be used if one is available. A connection is destroyed when a script's execution is complete or ibase_close() is called. Note that the buffers , dialect , and role parameters were not added until PHP 4.0rc2. ibase_pconnect() Syntax int ibase_pconnect (string database [,string username [,string password [, string charset [, int buffers [, int dialect [, string role ]]]]]]) Description PHP Developer’s Dictionary IT-SC book 418 The ibase_pconnect() function, which is available in PHP 3.0.6 through PHP 3.0.16 along with PHP 4.0 and higher, is similar to ibase_connect() that was described earlier, with one major difference. The difference is that the connection does not close with the end of a script's processing or a call to the ibase_close() function. ibase_close() Syntax int ibase_close ([int connection_id]) Description The ibase_close() function, which is available in PHP 3.0.6 through PHP 3.0.16 along with PHP 4.0 and higher, closes the connection referenced by the connection_id parameter. If connection_id is not specified, the most recently opened link is closed. The default transaction is committed on close and other transactions are rolled back. ibase_query() Syntax int ibase_query ([int link_identifier, string query [, int bind_args[]) Description The ibase_query() function, which is available in PHP 3.0.6 through PHP 3.0.16 along with PHP 4.0 and higher, executes the query parameter against the database referenced by the link_identifier parameter. Although the bind_args parameter is available for passing variable values, it is not recommended to do so; instead, you should use the ibase_prepare() and ibase_execute() functions. ibase_fetch_row() Syntax array ibase_fetch_row (int result_identifier) Description PHP Developer’s Dictionary IT-SC book 419 The ibase_fetch_row() function, which is available in PHP 3.0.6 through PHP 3.0.16 along with PHP 4.0 and higher, returns the next row from the result set referenced by the result_identifier parameter, which is the return value from ibase_query(). ibase_fetch_object() Syntax object ibase_fetch_object (int result_id) Description The ibase_fetch_object() function, which is available in PHP 3.0.6 through PHP 3.0.16 along with PHP 4.0 and higher, retrieves a row as a pseudo-object from the result set identified by the result_id parameter that is returned from the ibase_query() and ibase_execute() functions. ibase_free_result() Syntax int ibase_free_result (int result_identifier) Description The ibase_free_result() function, which is available in PHP 3.0.6 through PHP 3.0.16 along with PHP 4.0 and higher, frees the result set referenced by the result_identifier parameter . ibase_prepare() Syntax int ibase_prepare ([int link_identifier, string query]) Description The ibase_prepare() function, which is available in PHP 3.0.6 through PHP 3.0.16 along with PHP 4.0 and higher, prepares the query for later binding and execution . PHP Developer’s Dictionary IT-SC book 415 The ifx_free_slob() function, which is available in PHP 3.0.3 through PHP 3.0.16 along with PHP 4.0 and higher, deletes. ifxus_tell_slob() function, which is available in PHP 3.0.4 through PHP 3.0.16 along with PHP 4.0 and higher, returns the current file or seek position of the open PHP Developer’s Dictionary IT-SC book. ifxus_write_slob () function, which is available in PHP 3.0.4 through PHP 3.0.16 along with PHP 4.0 and higher, writes the content parameter into the SLOB PHP Developer’s Dictionary IT-SC book 417 object