function url_exists($url){ $fp=@fopen($url,"r"); // la fonction renvoi 1 si le fichier (l'URL) existe, 0 sinon. return ($fp)? 1 : 0; } ?>