[nycphp-talk] "getimagesize()" for non-images in PHP?
Phil Powell
phillip.powell at adnet-sys.com
Tue Mar 23 12:03:06 EST 2004
>
>
>I am well aware of getimagesize() to use to determine if something is a
>legitimate image. However, one of the requirements will be to determine
>if something is a legitimate something else, e.g., a XLS spreadsheet is
>an actual XLS spreadsheet or a PDF is a legitimate PDF or a video is an
>actual video.
>
>The only thing I could think of was to parse through /etc/mime.types,
>which is a horrific, laborious process of searching through thousands
>of records to determine if the MIME type of whatever was uploaded is
>what it says it is. Is there a PHP-based more-practical method to
>determine this?
>
>Thanx
>Phil
>
--
Phil Powell
Web Developer
ADNET Systems, Inc.
11260 Roger Bacon Drive, Suite 403
Reston, VA 20190-5203
Phone: (703) 709-7218 x107 Cell: (571) 437-4430 FAX: (703) 709-7219
EMail: Phillip.Powell at adnet-sys.com AOL IM: SOA Dude
More information about the talk
mailing list