stream_get_meta_data __ Retrieves header/meta data from streams/file pointers
Description
array stream_get_meta_data ( resource stream)
Returns information about an existing stream_
The stream can be any stream created by fopen(),
fsockopen() and pfsockopen()_
The result array contains the following items:
timed_out (bool) _ TRUE if the stream
timed out while waiting for data on the last call to
fread() or fgets()_
blocked (bool) _ TRUE if the stream is
in blocking IO mode_ See socket_set_blocking()_
eof (bool) _ TRUE if the stream has reached
end_of_file_ Note that for socket streams this member can be TRUE
even when unread_bytes is non_zero_ To
determine if there is more data to be read, use
feof() instead of reading this item_
unread_bytes (int) _ the number of bytes
currently contained in the read buffer_
The following items were added in PHP 4_3:
stream_type (string) _ a label describing
the underlying implementation of the stream_
wrapper_type (string) _ a label describing
the protocol wrapper implementation layered over the stream_
See Apéndice I for more information about wrappers_
wrapper_data (mixed) _ wrapper specific
data attached to this stream_ See Apéndice I for
more information about wrappers and their wrapper data_
filters (array) _ and array containing
the names of any filters that have been stacked onto this stream_
Filters are currently undocumented_
Nota:
This function was introduced in PHP 4_3, but prior to this version,
socket_get_status() could be used to retrieve
the first four items, for socket based streams only_