From afc04896c3a3b0a0b0ad9399e78a1a92bc634d35 Mon Sep 17 00:00:00 2001 From: Sean Coates Date: Tue, 16 Aug 2005 14:47:17 +0000 Subject: [PATCH] fix example (from user note -- and Derick) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@193644 c90b9560-bf6c-de11-be94-00142212c4b1 --- appendices/wrappers.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appendices/wrappers.xml b/appendices/wrappers.xml index 63e7f352a8..4b799d2782 100644 --- a/appendices/wrappers.xml +++ b/appendices/wrappers.xml @@ -1,5 +1,5 @@ - + List of Supported Protocols/Wrappers @@ -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); } }