note 11466 added to parse_url
| From: | cox at idecnet dot com | Date: | Wed, 21 Feb 2001 22:01:16 +0000 |
| Subject: | note 11466 added to parse_url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11381@lists.php.net to get a copy of this message | ||
Sorry but the above code has a bug. To correct it, replace the line from "//fragment" the
end with:
// fragment or query
if (isset($url['fragment'])){
$uri .= '#'.$url['fragment'];
} elseif (isset($url['query'])){
$uri .= '?'.$url['query'];
}
return $uri;
}
http://www.php.net/manual/en/function.parse-url.php