RE: [PHP] Re [PHP] Upload function
| From: | Maxim Maletsky | Date: | Thu, 24 Aug 2000 09:57:41 +0000 |
| Subject: | RE: [PHP] Re [PHP] Upload function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-13347@lists.php.net to get a copy of this message | ||
OK, this is not the best way but this WILL work:
(Useless if you have too many files to allow...)
if (substr ($YourFile, -4) == ".gif" || substr ($YourFile, -5) ==
".jpeg")
echo 'OK<br>';
else
echo 'opps, we didnt like the last 4-5 characted of your
file...';
-----Original Message-----
From: Florian Stührk [mailto:florian.stuehrk@cultur-e.de]
Sent: Thursday, August 24, 2000 6:31 PM
To: Ovidiu EFTIMIE
Cc: php-general Mailingliste
Subject: AW: [PHP] Re [PHP] Upload function
filetype does not work. the return values of filetype are fifo, char, dir,
block, link, file... no gif or jpeg????
-fs
-----Ursprüngliche Nachricht-----
Von: Ovidiu EFTIMIE [mailto:eovidiu@rds.ro]
Gesendet: Donnerstag, 24. August 2000 11:23
An: Florian Stührk; php-general@lists.php.net
Betreff: [PHP] Re [PHP] Upload function
Use filetype(filename)returns the file type
Ovidiu
-----Mesaj original-----
De la: php-general-return-13335-eovidiu=rds.ro@lists.php.net
[mailto:php-general-return-13335-eovidiu=rds.ro@lists.php.net]În numele
Florian Stührk
Trimis: Thursday, August 24, 2000 11:58 AM
Catre: php-general@lists.php.net
Subiect: [PHP] Upload function
Hi,
i tried to upload some images, using a html form and the php copy function.
How can i prevent users form uploading other file types than gif and jpeg?
Thanks,
Florian
--
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
--
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
--
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