stream_get_meta_data

(no version information, might be only in CVS)

stream_get_meta_data -- Retrieves header/meta data from streams/file pointers

Description

array file_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:

The following items were added in PHP 4.3:

Note: 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.

In PHP 4.3 and later, socket_get_status() is an alias for this function.

Note: This function does NOT work on sockets created by the Socket extension.