46 'http://example.org/hello?foo=bar#test',
49 'host' =>
'example.org',
60 'http://example.org/有词法别名.zh',
63 'host' =>
'example.org',
64 'path' =>
'/%E6%9C%89%E8%AF%8D%E6%B3%95%E5%88%AB%E5%90%8D.zh',
72 'ftp://user:password@ftp.example.org/',
75 'host' =>
'ftp.example.org',
87 'http://example.org/hello:12?foo=bar#test',
90 'host' =>
'example.org',
91 'path' =>
'/hello:12',
103 'path' =>
'/path/to/colon:34',
116 'path' =>
'/foo/bar',
129 'path' =>
'/somefile',
138 'ldap://[2001:db8::7]/c=GB?objectClass?one',
141 'host' =>
'[2001:db8::7]',
145 'query' =>
'objectClass?one',
150 'news:comp.infosystems.www.servers.unix',
154 'path' =>
'comp.infosystems.www.servers.unix',
163 'http://example.org:8080/',
166 'host' =>
'example.org',
_parse_fallback($uri)
This function is another implementation of parse_url, except this one is fully written in PHP...
testParseFallback($in, $out)
parseData
if(php_sapi_name() !='cli') $in
parse($uri)
Parses a URI and returns its individual components.
testParse($in, $out)
parseData