note 24739 added to function.parse-url
| From: | php-general at lists dot php dot net | Date: | Tue, 27 Aug 2002 14:31:00 +0000 |
| Subject: | note 24739 added to function.parse-url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-35734@lists.php.net to get a copy of this message | ||
The above sample code is incorrect: it incorrectly glues the port between "http:" and "//host".
Instead, it should use the port (only if set), by inserting a colon and the port between the host
and the path.
--
http://www.php.net/manual/en/function.parse-url.php
http://master.php.net/manage/user-notes.php?action=edit+24739
http://master.php.net/manage/user-notes.php?action=delete+24739
http://master.php.net/manage/user-notes.php?action=reject+24739