update : 2015.11.03
php.shukuma.com검색:
|
stream_get_meta_data(PHP 4 >= 4.3.0, PHP 5) stream_get_meta_data — Retrieves header/meta data from streams/file pointers 설명
array stream_get_meta_data
( resource
$stream
)
Returns information about an existing 반환값The result array contains the following items:
예제
Example #1 stream_get_meta_data() example
<?php 위 예제의 출력 예시: Array ( [wrapper_data] => Array ( [0] => HTTP/1.1 200 OK [1] => Server: Apache/2.2.3 (Red Hat) [2] => Last-Modified: Tue, 15 Nov 2005 13:24:10 GMT [3] => ETag: "b300b4-1b6-4059a80bfd280" [4] => Accept-Ranges: bytes [5] => Content-Type: text/html; charset=UTF-8 [6] => Set-Cookie: FOO=BAR; expires=Fri, 21-Dec-2012 12:00:00 GMT; path=/; domain=.example.com [6] => Connection: close [7] => Date: Fri, 16 Oct 2009 12:00:00 GMT [8] => Age: 1164 [9] => Content-Length: 438 ) [wrapper_type] => http [stream_type] => tcp_socket/ssl [mode] => r [unread_bytes] => 438 [seekable] => [uri] => http://www.example.com/ [timed_out] => [blocked] => 1 [eof] => ) 주의
참고
|