All pastes #544423 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-06 12:51 UTC
rendered paste body

$fileexto = strtoupper($fileext);
echo '|'.$fileexto.'|';

$exclude = array('ZIP' , 'RAR' , 'GIF' , 'PNG' , 'JPG' , 'BMP' , 'TXT' , 'HTM' , 'HTML' , 'VTF' ,  'VMT' , 'EXE' , 'DLL' , 'CFG');


if (in_array($filexto, $exclude))
{


}
else
{
die(' YOU TRIED TO UPLOAD A FILE WHICH IS NOT ALLOWED');
}