j'ai une petite fonction très simple qui vérifie l'existence d'un blog.
Code : Tout sélectionner
function validate_tumblr($tumblr){
$check = file_get_contents('http://'.$tumblr.'.tumblr.com/api/read/json?num=1');
return $check;
}Code : Tout sélectionner
if(!validate_tumblr($_POST['tumblr'])){
$message[]='Your tumblr blog doesn\'t exist.';
}else{
$tumblr=$_POST['tumblr'];
}Une idée pour éviter cela ?Warning: file_get_contents(http://hjhgjghjghjhjgjjjjjjggg.tumblr.c ... json?num=1) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\wamp\www\functions.php on line 15
Merci.