Posted By

luman on 03/09/08


Tagged

file extension


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

gbot


Get file extension


 / Published in: PHP
 

  1. $ext = explode('.',$HTTP_POST_FILES['fichero']['name']);
  2. $ext = $ext[count($ext)-1];
  3. if($ext == "pjpeg") $ext = "jpg";

Report this snippet  

You need to login to post a comment.