function validarUrl($url) { $validar = fopen($url,"r"); if ($validar) { return true; } else { return false; } fclose($validar); }