Current Path : /var/www/clients/client35/web46/web/admin/AppController/ |
Current File : /var/www/clients/client35/web46/web/admin/AppController/validar.php |
<?php $file = ($_FILES['url_slid']); $size=getimagesize($_FILES['url_slid']['tmp_name']); $ancho_imagen = $size[0]; $alto_imagen = $size[1]; if(($ancho_imagen<980 and $ancho_imagen>900 ) and ($alto_imagen<320 and $alto_imagen>290) ) { $respuesta = "correcto"; echo json_encode($respuesta); } else{ $respuesta ="Error"; echo json_encode($respuesta); } ?>