svn: /phpdoc/en/trunk/language/wrappers/ http.xml

From: Date: Fri, 06 Jan 2012 09:11:20 +0000
Subject: svn: /phpdoc/en/trunk/language/wrappers/ http.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9323@lists.php.net to get a copy of this message
vrana Fri, 06 Jan 2012 09:11:20 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=321820 Log: Fix example Changed paths: U phpdoc/en/trunk/language/wrappers/http.xml Modified: phpdoc/en/trunk/language/wrappers/http.xml =================================================================== --- phpdoc/en/trunk/language/wrappers/http.xml 2012-01-06 08:51:47 UTC (rev 321819) +++ phpdoc/en/trunk/language/wrappers/http.xml 2012-01-06 09:11:20 UTC (rev 321820) @@ -155,13 +155,13 @@ $fp = fopen($url, 'r'); $meta_data = stream_get_meta_data($fp); -foreach($meta_data['wrapper_data'] as $response) { +foreach ($meta_data['wrapper_data'] as $response) { /* Were we redirected? */ - if (substr(strtolower($response), 0, 10) == 'location: ') { + if (strtolower(substr($response, 0, 10)) == 'location: ') { /* update $url with where we were redirected to */ - $url = substr($response, 18); + $url = substr($response, 10); } }

« previous php.doc.cvs (#9323) next »