if (!((strpos($type, "gif") || strpos($type, "jpeg")) && ($size < 100000))) { $msg="Tamaño excesivo"; }