What is FILTER_VALIDATE_URL in PHP?
FILTER_FLAG_SCHEME_REQUIRED | Requires URL to be an RFC compliant URL (like http://hscripts) |
FILTER_FLAG_HOST_REQUIRED | Requires URL to include host name (like //www.hscripts.com) |
FILTER_FLAG_PATH_REQUIRED | Requires URL to have a path after the domain name (like www.hscripts.com/scripts/test/) |
FILTER_FLAG_QUERY_REQUIRED | Requires URL to have a query string (like "hscripts.php?name=script&id=12") |