parse_url() oddities

From: Date: Tue, 12 Sep 2000 19:28:06 +0000
Subject: parse_url() oddities
Groups: php.general 
Request: Send a blank email to php-general+get-16425@lists.php.net to get a copy of this message
If I run $x = parse_url($url) and $url = fully qualified domain, e.g. http://www.nothing.com, I get the 'www.nothing.com' part in the $x["host"] key. However, if $url = www.nothing.com then the 'www.nothing.com' is placed in the $x["path"] key. Because I don't know what my users are going to type I want to prepare my system to spit out fully qualified stuff. I guess I'll use a regex to help. But what's up with the function?

« previous php.general (#16425) next »