fix example (from user note -- and Derick)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@193644 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sean Coates 2005-08-16 14:47:17 +00:00
parent 444ea251a2
commit afc04896c3

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.53 $ -->
<!-- $Revision: 1.54 $ -->
<appendix id="wrappers">
<title>List of Supported Protocols/Wrappers</title>
<para>
@ -191,9 +191,9 @@ $meta_data = stream_get_meta_data($fp);
foreach($meta_data['wrapper_data'] as $response) {
/* Were we redirected? */
if (substr(strtolower($response), 0, 10) == 'location: ') {
if (substr(strtolower($response), 0, 18) == 'content-location: ') {
/* update $url with where we were redirected to */
$url = substr($response, 10);
$url = substr($response, 18);
}
}