PHP Doku:: Reads part of the large object - function.oci-lob-read.html

Verlauf / Chronik / History: (13) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische DatenbankerweiterungenOracle OCI8OCI8 FunktionenOCI-Lob->read

Ein Service von Reinhard Neidl - Webprogrammierung.

OCI8 Funktionen

<<OCI-Lob->load

OCI-Lob->rewind>>

OCI-Lob->read

(PHP 5, PECL OCI8 >= 1.1.0)

OCI-Lob->readReads part of the large object

Beschreibung

string OCI-Lob::read ( int $length )

Reads length bytes from the current position of LOB's internal pointer.

Reading stops when length bytes have been read or end of the large object is reached. Internal pointer of the large object will be shifted on the amount of bytes read.

Parameter-Liste

length

The length of data to read, in bytes.

Rückgabewerte

Returns the contents as a string, Im Fehlerfall wird FALSE zurückgegeben..


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
alvaro at demogracia dot com
8.10.2008 9:32
To read the whole LOB into a variable:

<?php
$foo
= $MyBlob->read($MyBlob->size());
?>



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)