mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
444ea251a2
commit
afc04896c3
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue