I'm making this site about ecards. Some cards are flash , some gif, some jpg. How to recognize which file is what type???
Hi, You can recognize the file type using file extention.Use this to get the extention of the file. $file_ext=strtolower(str_replace(".","",strrchr($filename,".")));
how to check if its either gif or jpg in if statement. Is this correct: if($file_ext=="gif" || "jpg"){}else{}.
Please help
Why don't you try it? Should be something like that, yeah...
Hi, Use if($file_ext=="gif" || $file_ext=="jpg"){ }else{ }