Jump to content

a rfc compliant web address ?


tommr

Recommended Posts

I was getting help with my script and I just noticed this was added.

What does it mean?

 

 

/*** a rfc compliant web address ***/
$url = "http://www.phpro.org";

/*** try to validate the URL ***/
if(filter_var($url, FILTER_VALIDATE_URL) === FALSE)
        {
        /*** if there is no match ***/
        echo "Sorry, $url is not valid!";
        }
else
        {
        /*** if we match the pattern ***/
        echo "The URL, $url is valid!<br />";
        }

Link to comment
https://forums.phpfreaks.com/topic/229895-a-rfc-compliant-web-address/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.