Validate url external resource
Can be used to test the validity of an external resource
`` function isExternalUrlResource($url)
{
if(preg_match('!^(?https?)?:?(?\/\/)(?[a-zA-Z0-9]+[\.]+[a-zA-Z0-9-.]+)(?:\d+)?(?[a-zA-Z0-9\/]+.*)?$!i', $url, $matches)) {
return isset($matches['host']) && isset($matches[...
Submitted by Eolia - a month ago (Last modified a month ago)