Re: image file check??
| From: | Jesper Juhl | Date: | Wed, 30 Aug 2000 14:39:15 +0000 |
| Subject: | Re: image file check?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14404@lists.php.net to get a copy of this message | ||
You could use the linux command "file" (man 1 file). file retrieves
information about a file's type.
This ofcourse requires that you are running from a Linux based box.
Best regards,
jesper juhl
juhl@eisenstein.dk
>>>>>>>>>>>>>>>>>> Oprindelig meddelelse
>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<
Den 8/30/00, 2:47:16 PM, skrev s0010684@kmitl.ac.th (Worawisut Pinyoyang)
til emnet [PHP] image file check??:
> my program allow user to upload image files.
> how do i know that file (user upload) is an image file (*.jpg , *.gif)
> (avoid uploading file such as *.mp3 *.zip)
> Thank you very much
> Worawisut
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net