note 46477 deleted from function.parse-url by didou
| From: | didou@php.net | Date: | Sat, 03 Feb 2007 03:08:45 +0000 |
| Subject: | note 46477 deleted from function.parse-url by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-122618@lists.php.net to get a copy of this message | ||
Note Submitter: duellj at gmail dot com
----
A quick note about something that tripped me up:
the url you are parsing must include the scheme, or it will be parsed into the 'path' key.
Example:
<?
$parsed = parse_url("www.php.net");
print_r($parsed);
/*
outputs:
Array
(
[path] => www.php.net
)
*/
?>