Yup , There is no need to check the dot :D
antihacking1 2 weeks ago
what if i upload a file called "some.thing.jpg"
lordofthemonths 9 months ago 2
@lordofthemonths
$var='image/jpeg'; $type = $_FILES['file']['type']; if ($type==$extn){}else{echo 'Only jpg files only';} this worked very well
CroceMalo1 9 months ago
@CroceMalo1 so we don't need to check the dot? only $type is enough?
LetsSpotIt 3 weeks ago in playlist PHP Tutorials Playlist
@lordofthemonths instead of getting the . get the letter after the dot, see if its a j, if not, then continue, and if it is, then check the letter after the j, see if its p, and so on
TheRealLazySmurf 6 months ago
Why is if($type=='image/jpeg'){} not enough?
joaoris 10 months ago
Thank you, you are a great teacher :D
1zacster 10 months ago 10
Yup , There is no need to check the dot :D
antihacking1 2 weeks ago
what if i upload a file called "some.thing.jpg"
lordofthemonths 9 months ago 2
@lordofthemonths
$var='image/jpeg'; $type = $_FILES['file']['type']; if ($type==$extn){}else{echo 'Only jpg files only';} this worked very well
CroceMalo1 9 months ago
@CroceMalo1 so we don't need to check the dot? only $type is enough?
LetsSpotIt 3 weeks ago in playlist PHP Tutorials Playlist
@lordofthemonths instead of getting the . get the letter after the dot, see if its a j, if not, then continue, and if it is, then check the letter after the j, see if its p, and so on
TheRealLazySmurf 6 months ago
Why is if($type=='image/jpeg'){} not enough?
joaoris 10 months ago
Thank you, you are a great teacher :D
1zacster 10 months ago 10