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 Quote 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. Quote 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 Quote 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/ Quote Link to comment https://forums.phpfreaks.com/topic/187820-_filesuserfiletypeimagegif/#findComment-991686 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.