note 18016 deleted from function.parse-url by didou
| From: | didou@php.net | Date: | Thu, 09 Oct 2003 13:30:14 +0000 |
| Subject: | note 18016 deleted from function.parse-url by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58132@lists.php.net to get a copy of this message | ||
Note Submitter: mholdgate@wakefield.co.uk
----
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.