note 76464 added to function.parse-url
| From: | AnttiHaapala at osu1 dot php dot net | Date: | Tue, 17 Jul 2007 08:42:01 +0000 |
| Subject: | note 76464 added to function.parse-url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128647@lists.php.net to get a copy of this message | ||
Actually the behaviour noticed by the previous poster is quite correct. When the URI scheme is not
present, it is plain wrong to assume that something starting with www. is a domain name, and that
the scheme is HTTP. Internet Explorer does it that way, sure, but it does not make it any more
correct. The documentation says that the function tries to decode the URL as well as it can, and the
only sensible and standards-compliant way to decode such URL is to expect it to be a relative URI.
----
Server IP: 62.237.7.3
Probable Submitter: 80.75.102.206
----
Manual Page -- http://www.php.net/manual/en/function.parse-url.php
Edit -- https://master.php.net/note/edit/76464
Del: integrated -- https://master.php.net/note/delete/76464/integrated
Del: useless -- https://master.php.net/note/delete/76464/useless
Del: bad code -- https://master.php.net/note/delete/76464/bad+code
Del: spam -- https://master.php.net/note/delete/76464/spam
Del: non-english -- https://master.php.net/note/delete/76464/non-english
Del: in docs -- https://master.php.net/note/delete/76464/in+docs
Del: other reasons-- https://master.php.net/note/delete/76464
Reject -- https://master.php.net/note/reject/76464
Search -- https://master.php.net/manage/user-notes.php