Hello forums
How can I use the or operator, this one isn’t working obviously there is something wrong somewhere
$source = $_FILES['new_image']['tmp_name'];
$fileinfo = getimagesize($source);
if ($fileinfo['mime'] != 'image/jpeg' ||
$fileinfo['mime'] != 'image/gif' ||
$fileinfo['mime'] != 'image/png' ||
$fileinfo['mime'] != 'image/bmp' ||){
echo "<script>alert('The File you are uploading is not a valid image file')</script>";
die();
}
Any help is gladly appreciated . thanks …I’m kinda stuck eeekk