vous pouvez utilisez la function mime_content_type :
http://php.belnet.be/manual/en/function.mime-content-type.php

On Fri, 2005-10-28 at 10:31 +0200, Véronique Samygin wrote:
> Bonjour,
> 
> En PHP, comment contrôler l'extension de données qu'un utilisateur souhaite 
> ajouter dans une table ? (Ces données sont prévues pour être ajoutées depuis 
> une disquette ou un CD)
> 
> L'objectif est d'empêcher l'ajout de données au format inadéquat dans des 
> dossiers différents (photo, texte) en lien avec une table PostgreSQL. 
> 
> Merci
> 
> _______________________________________________________
> Linux Mailing List - http://www.unixtech.be
> Subscribe/Unsubscribe: http://lists.unixtech.be/cgi-bin/mailman/listinfo/linux
> Archives: http://www.mail-archive.com/linux@lists.unixtech.be
> IRC: chat.unixtech.be:6667 - #unixtech
> NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech
> 
-- 
Best regards,

Fred.

\  /
 \/__ T e n d
 /\      Frédéric Descamps
/  \     Senior Linux Consultant 
         RedHat Certified Engineer  - MySQL Core & Pro Certified
-------------------------------------------------------------------------------
(o-                                          Linux Rules
//\                                      No HTML in emails
V_/_                             http://www.x-tend.be/~fred
-------------------------------------------------------------------------------

_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://lists.unixtech.be/cgi-bin/mailman/listinfo/linux
Archives: http://www.mail-archive.com/linux@lists.unixtech.be
IRC: chat.unixtech.be:6667 - #unixtech
NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech

Répondre à