[photoshop] realizzare un testo “acquoso” [anteprima] creare il proprio convertitore di video da youtube a mp3




Set 30

con questa funzione possiamo valire un link (url) con php

 
function is_valid_url($url = ) {
 
// SCHEME
$urlregex = "^(https?|ftp)\:\/\/";
 
// USER AND PASS (optional)
$urlregex .= "([a-z0-9+!*(),;?&=$_.-]+(\:[a-z0-9+!*(),;?&=$_.-]+)?@)?";
 
// HOSTNAME OR IP
//$urlregex .= "[a-z0-9+$_-]+(\.[a-z0-9+$_-]+)*"; // http://x = allowed (ex. http://localhost, http://routerlogin)
$urlregex .= "[a-z0-9+$_-]+(\.[a-z0-9+$_-]+)+"; // http://x.x = minimum
//$urlregex .= "([a-z0-9+$_-]+\.)*[a-z0-9+$_-]{2,3}"; // http://x.xx(x) = minimum
//use only one of the above
 
// PORT (optional)
$urlregex .= "(\:[0-9]{2,5})?";
// PATH (optional)
$urlregex .= "(\/([a-z0-9+$_-]\.?)+)*\/?";
// GET Query (optional)
$urlregex .= "(\?[a-z+&$_.-][a-z0-9;:@/&%=+$_.-]*)?";
// ANCHOR (optional)
$urlregex .= "(#[a-z_.-][a-z0-9+$_.-]*)?$";
 
if (eregi($urlregex, $url)) { return true; } else { return false; }
}
 

fonte: www.sastgroup.com » Vai al post originale





Scrivi un commento