Ver original$nombrefoto=strtolower($nombrefoto);if(substr($nombrefoto,-4)!=".jpeg"){echo "No es imagen";die();}