$ext=false; if(!eregi("avi",$_FILES["video"]["type"])) { $ext=true; } if(!eregi("mov",$_FILES["video"]["type"])) { $ext=true; } if(!$ext) {echo "archivo incorrecto";exit;}