Re: finding out the .xxx
| From: | Philip Hallstrom | Date: | Fri, 28 Sep 2001 23:29:53 +0000 |
| Subject: | Re: finding out the .xxx | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69233@lists.php.net to get a copy of this message | ||
Hi -
Read: http://www.php.net/manual/en/features.file-upload.php
You're interested in the "type" and "size" variables. The type will be
something like "image/gif" or "image/jpeg"... anything else and you don't
want it.
Also take a look at the getimagesize() function to determine the images
size.
http://www.php.net/manual/en/function.getimagesize.php
-philip
On Sat, 29 Sep 2001, Teqila MAN wrote:
> Hello,
>
> I'm starter so please help me. I'm uploading a file via form and how to mak
> e the rule that only .gif and .jpg under 150 KB are supported ? (and size un
> der 300x400) ?
>
> Teqilaman
>
>
> --
> 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
>