tamilmani Posted January 9, 2010 Share Posted January 9, 2010 Hi Everyone, I have one doubt in below code @$_FILES[userfile][type]=="image/gif" Why @ symbol use before ??? Please tell me anyone Link to comment https://forums.phpfreaks.com/topic/187820-_filesuserfiletypeimagegif/ Share on other sites More sharing options...
PHP Monkeh Posted January 9, 2010 Share Posted January 9, 2010 The @ symbol will supresses errors generated by that particular expression. I must admit I only ever see it in function calls rather than like the example you provided. Link to comment https://forums.phpfreaks.com/topic/187820-_filesuserfiletypeimagegif/#findComment-991658 Share on other sites More sharing options...
tamilmani Posted January 9, 2010 Author Share Posted January 9, 2010 Ok Thanks lot Link to comment https://forums.phpfreaks.com/topic/187820-_filesuserfiletypeimagegif/#findComment-991660 Share on other sites More sharing options...
ignace Posted January 9, 2010 Share Posted January 9, 2010 You should not use type to verify it's an image because I can upload PHP files this way if I tell my browser that PHP is an image. See http://josephkeeler.com/2009/04/php-upload-security-the-1x1-jpeg-hack/ Link to comment https://forums.phpfreaks.com/topic/187820-_filesuserfiletypeimagegif/#findComment-991686 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.