PHP 8.4.0 RC3 available for testing

dio_read

(PHP 4 >= 4.2.0, PHP 5 < 5.1.0)

dio_read Liest von einem Dateideskriptor

Beschreibung

dio_read(resource $fd, int $len = 1024): string

Die Funktion dio_read() liest len Bytes aus der Datei fd.

Parameter-Liste

fd

Ein von dio_open() zurückgegebener Dateideskriptor.

len

Die Anzahl zu lesender Bytes. Wird diese nicht angegeben so wird in 1KB-Blöcken gelesen.

Rückgabewerte

Die vom Deskriptor fd gelesenen Daten.

Siehe auch

add a note

User Contributed Notes 1 note

up
-1
matt at vhub dot com
18 years ago
Note that dio_read on Windows (other platforms unknown) will not timeout if there is no data to read. There is no way to specify a timeout or do a non-blocking read on Windows.
To Top