Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

string ifxus_read_slob(integer slob, integer bytes)


The ifxus_read_slob function returns data from the specified slob object. The bytes
argument specifies the number of bytes to return.


integer ifxus_seek_slob(integer slob, integer mode, integer
offset)


The ifxus_seek_slob function moves the current cursor position within a slob object.
The mode argument controls where the offset is applied. If mode is 0, offset is applied to
the beginning. If mode is 1, offset is applied to the current position. If mode is 2, offset
is applied to the end of the slob object.


integer ifxus_tell_slob(integer slob)


The ifxus_tell_slob function returns the current position of a cursor inside a slob
object.


integer ifxus_write_slob(integer slob, string data)


The ifxus_write_slob function writes data to an open slob object. The number of bytes
written is returned.


InterBase


InterBase is a full-featured database that spent much of its life as closed-source and
proprietary. In January 2000, Inprise released InterBase under an open source license,
allowing everyone access to the source code. InterBase is the first opensource database to
be compliant with the SQL 92 standard. Under commercial development for more than
16 years, InterBase compares favorably to Oracle, Sybase, and IBM's DB2. This section
discusses the PHP functions for communicating with InterBase, but a tutorial on
InterBase itself is out of scope. Apart from the extensive documentation on the InterBase
site http://www.interbase.com/, you may find useful information in books about
Borland's C++ compiler or Delphi.


InterBase support was added to PHP by Jouni Ahto. Later work was done by Andrew
Avdeev and Ivo Panacek. At the time of writing, InterBase functions in PHP were not
complete, but the recent change in licensing will probably encourage developers. You
also have the option of using the ODBC functions.


boolean ibase_blob_add(integer blob, string data)


The ibase_blob_add function adds data to a blob. You must create the blob first with
ibase_blob_create.


boolean ibase_blob_cancel(integer blob)

Free download pdf