note 107404 added to function.http-build-url
| From: | randyg at ernieball dot com | Date: | Mon, 06 Feb 2012 20:15:16 +0000 |
| Subject: | note 107404 added to function.http-build-url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-185883@lists.php.net to get a copy of this message | ||
Although I've never used this function, based on the documentation it seems that the above code
should also include the following:
if ( ! is_array( $url ) ) // Added - Randy
// Parse the original URL
$parse_url = parse_url($url);
// allow parts to be a url Added - Randy
if ( ! is_array( $parts ) )
$parts = parse_url( $parts );
----
Server IP: 208.69.120.55
Probable Submitter: 204.118.62.66
----
Manual Page -- http://www.php.net/manual/en/function.http-build-url.php
Edit -- https://master.php.net/note/edit/107404
Del: integrated -- https://master.php.net/note/delete/107404/integrated
Del: useless -- https://master.php.net/note/delete/107404/useless
Del: bad code -- https://master.php.net/note/delete/107404/bad+code
Del: spam -- https://master.php.net/note/delete/107404/spam
Del: non-english -- https://master.php.net/note/delete/107404/non-english
Del: in docs -- https://master.php.net/note/delete/107404/in+docs
Del: other reasons-- https://master.php.net/note/delete/107404
Reject -- https://master.php.net/note/reject/107404
Search -- https://master.php.net/manage/user-notes.php