ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-spanish
php-spanish
[PHP-ES] tipo myme
by Fernando Viadero other posts by this author
Nov 21 2006 12:30AM messages near this date
[PHP-ES] ayuda con la generación de un fpdf | [PHP-ES] Procesar archivos XML
hola


está bien este codigo??


fotos es un array de ficheros subidos por post.. (tienen que ser imágenes)..

si son imagenes las proceso, sino no las proceso...

el caso es que alguno de mis usuarios tiene problemas.. (no le deja subir 
jpg... por ejemplo..el cual me lo ha mandado por email y yo lo he subido 
perfectamente..)

es el tipo myme case sensitive??? creo que no, no?

gracias




      $tipo = $HTTP_POST_FILES["fotos"]["type"][$a];
      $tipo = ( strstr($tipo, '; name') ) ? str_replace(strstr($tipo, ';
name'), '', $tipo) : $tipo;   //some opera patch¿¿¿


      if (
               ($tipo == "image/png") ||
               ($tipo == "image/jpeg") ||
               ($tipo == "image/jpg") ||
               ($tipo == "image/bmp") ||
               ($tipo == "image/gif")
        )
       {
            //process.
        }
    else
        {
            //do nothing
        }

-- 
PHP Spanish Localization Talk Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved