Jump to content

MorbidEntree

New Members
  • Posts

    1
  • Joined

  • Last visited

MorbidEntree's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I'm looking to be able to validate a URL to make sure it has a tld in it (ex. http://example.com, instead of http://example). I know that I can use the following code to validate a URL, but it doesn't make sure that it has a tld, just that it has http/https/etc. if (filter_var($url, FILTER_VALIDATE_URL) === FALSE) { die('Not a valid URL'); } (By the way, I am not very experienced in PHP, but I do know some basics)
×
×
  • 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.