daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Mar 22nd, 2015 222 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $_FILES['file']['name'] = 'example.png';
  2.  
  3. if(substr($_FILES['file']['name'], -3) != 'png' && substr($_FILES['file']['name'], -3) != 'jpg' && substr($_FILES['file']['name'], -4) != 'jpeg') {
  4.         echo 'Invalid Type!';
  5.         exit;
  6. }
  7. echo 'Valid type';
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top