note 71224 added to ref.filesystem
| From: | dwalton at acm dot org | Date: | Fri, 17 Nov 2006 08:17:21 +0000 |
| Subject: | note 71224 added to ref.filesystem | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119827@lists.php.net to get a copy of this message | ||
If you fetch a URL with file_get_contents() or related functions, the HTTP headers will be put into
the magic (but sorely underdocumented) variable $http_response_header as an array. This is true
even when the function fails due to a 4xx or 5xx error and returns false - the headers are still
available in $http_response_header. And unlike stream_get_meta_data(), this is not limited to just
those functions that operate on stream references.
----
Server IP: 66.163.161.117
Probable Submitter: 68.122.11.183
----
Manual Page -- http://www.php.net/manual/en/ref.filesystem.php
Edit -- https://master.php.net/note/edit/71224
Del: integrated -- https://master.php.net/note/delete/71224/integrated
Del: useless -- https://master.php.net/note/delete/71224/useless
Del: bad code -- https://master.php.net/note/delete/71224/bad+code
Del: spam -- https://master.php.net/note/delete/71224/spam
Del: non-english -- https://master.php.net/note/delete/71224/non-english
Del: in docs -- https://master.php.net/note/delete/71224/in+docs
Del: other reasons-- https://master.php.net/note/delete/71224
Reject -- https://master.php.net/note/reject/71224
Search -- https://master.php.net/manage/user-notes.php