Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. function isFile($ext){
  2.     $ext = strtolower($ext);
  3.     $f = array( 'application/zip', 'application/x-zip-compressed', 'application/octet-stream', 'application/x-zip-compressed' );
  4.     $f_ext = array( 'zip', 'ZIP' );
  5.     if( in_array($_FILES["file"]["type"], $f) && in_array($ext, $f_ext)){
  6.         return true;
  7.     }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement