For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > May 2006 > cvs: phpdoc /en/appendices wrappers.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/appendices wrappers.xml
Gavin Foster

2006-05-28, 7:00 pm

gavinfo Sun May 28 20:33:19 2006 UTC

Modified files:
/phpdoc/en/appendices wrappers.xml
Log:
Correction to example of detecting http redirection.



http://cvs.php.net/viewcvs.cgi/phpd...1&diff_format=u
Index: phpdoc/en/appendices/wrappers.xml
diff -u phpdoc/en/appendices/wrappers.xml:1.60 phpdoc/en/appendices/wrappers.xml:1.61
--- phpdoc/en/appendices/wrappers.xml:1.60 Mon Apr 3 16:00:02 2006
+++ phpdoc/en/appendices/wrappers.xml Sun May 28 20:33:19 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.60 $ -->
+<!-- $Revision: 1.61 $ -->
<appendix id="wrappers">
<title>List of Supported Protocols/Wrappers</title>
<para>
@@ -191,7 +191,7 @@
foreach($meta_data['wrapper_data'] as $response) {

/* Were we redirected? */
- if (substr(strtolower($response), 0, 18) == 'content-location: ') {
+ if (substr(strtolower($response), 0, 10) == 'location: ') {
/* update $url with where we were redirected to */
$url = substr($response, 18);
}
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com