Back

Url validation using active_url


$rules = array(
    'url' => 'required|active_url'
);

I am using the following url to test whether url is valid or not but when i try url like

http://www.tutorialspoint.com/python/python_database_access.htm

It returns false, saying "The url is not a valid URL."

How so ? Is there anything i am doing wrong ??

shez1983 replied 2 years ago

underneath it is using the checkdnsrr PHP function.. so maybe that itself returns false? try that directly ie test it to see whether the problem is with Laravel or PHP itself..

duckduckgo replied 2 years ago

shez1983 said:

underneath it is using the checkdnsrr PHP function.. so maybe that itself returns false? try that directly ie test it to see whether the problem is with Laravel or PHP itself..

http://www.tutorialspoint.com/python/python_database_access.htm is online, but it still returning false

shez1983 replied 2 years ago

what does that link got to do with anything? php doesnt use that link... i am confused


Sign in to participate in this thread!



We'd like to thank these amazing companies for supporting us