note 25789 deleted from function.preg-match by sniper
| From: | sniper@php.net | Date: | Tue, 30 Sep 2003 12:13:51 +0000 |
| Subject: | note 25789 deleted from function.preg-match by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57396@lists.php.net to get a copy of this message | ||
Note Submitter: Fraghunter@web.de
----
Yes, carl you are right.
parse_url() does parse urls like any programm would do.
It is just the right way, because without a protocoll "foo.com/hello.html" IS a path -
else it would not be possible to give a folder the name "foo.com".
So if you have a formular were you want users who are inexperienced with the internet to enter an
URL then this regexps would prove useful.
You could parse the string given, replace the missing components with the right ones and then paste
it together again.