note 18016 added to function.parse-url
| From: | mholdgate at wakefield dot co dot uk | Date: | Mon, 07 Jan 2002 16:15:39 +0000 |
| Subject: | note 18016 added to function.parse-url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24498@lists.php.net to get a copy of this message | ||
Here is a good example of how it would parse this url:
http://name:pass@127.0.0.1:6667/pages/page.php?foo=bar#bookmark
(URL is fake)
This URL uses HTTP, the HTAccess name and password are name and pass, it's a localhost, on port
6667. The file page.php is being queried with foo=bar. It is also set to scroll to the
'bookmark' anchor
Parse URL would give us
[scheme] = 'http'
[host] = '127.0.0.1'
[port] = 6667 (Is an INT, not a STRING)
[user] = 'user'
[path] = '/pages/page.php'
[query] = 'foo=bar'
[fragment] = 'bookmark'
Hopefully this will help someone.
--
http://www.php.net/manual/en/function.parse-url.php
http://master.php.net/manage/user-notes.php?action=edit+18016
http://master.php.net/manage/user-notes.php?action=delete+18016
http://master.php.net/manage/user-notes.php?action=reject+18016