get_headers patch
| From: | Arnar Mar Sigurðsson | Date: | Fri, 25 Nov 2005 04:07:20 +0000 |
| Subject: | get_headers patch | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-20327@lists.php.net to get a copy of this message | ||
This is a update of the get_headers patch i sent in a long time ago and was
ignored. Patch is written with the latest cvs snapshot of 5.1. Hope it makes it
way to 5.1.1
Info:
mixed get_headers ( string url [, bool format | string header [,resource context]])
2nd arg can eather be bool or string
bool:
true returns an numeric indexed array with headers
false returns key index array with header name as key
string:
returns only the header with the same name.
passing long will cast E_STRICT but still work the old way
3nd arg is a context to pass header/data to the url.