note 46477 added to function.parse-url
| From: | duelljatgmaildotcom at osu1 dot php dot net | Date: | Tue, 12 Oct 2004 22:13:29 +0000 |
| Subject: | note 46477 added to function.parse-url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78450@lists.php.net to get a copy of this message | ||
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
)
*/
?>
----
Manual Page -- http://www.php.net/manual/en/function.parse-url.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46477
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46477&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46477&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46477&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46477&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46477&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46477&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46477&report=yes
Search -- http://master.php.net/manage/user-notes.php