In PHP, filter_var(\'www.example.com\', FILTER_VALIDATE_URL) returns false. Is this correct? Isn\'t www.example.com a valid URL, or protoc
filter_var(\'www.example.com\', FILTER_VALIDATE_URL)
false
www.example.com
The URL have to correspond with the rules set forward in RFC 2396, and according to that spec the protocol is necessary.