Validate URL with PHP
I need to check if a form field is a valid URL (it can be done through
HTML5, but not every browser has it yet), and I can't find a good URL
checker function. It's strange, because with email-checking, there are
lots of already-done functions.
I've seen (I just discovered it) the filter_var() function, but as I read,
there are some issues with urls. I can find some regular expressions, but
they don't seem very exhaustive.
Do you know any good url checker function?
No comments:
Post a Comment