I have this problem trying to check the file that I upload with a form
this code run ok
$ph=$_FILES["photos"]["size"];
if ((($_FILES["photos"]["type"] != "image/gif")
|| ($_FILES["photos"]["type"] != "image/jpeg")
|| ($_FILES["photos"]["type"] != "image/pjpeg")
|| ($_FILES["photos"]["type"] != "image/png"))
//&& ($ph > 2502400)
)
But this not , why?
$ph=$_FILES["photos"]["size"];
if ((($_FILES["photos"]["type"] != "image/gif")
|| ($_FILES["photos"]["type"] != "image/jpeg")
|| ($_FILES["photos"]["type"] != "image/pjpeg")
|| ($_FILES["photos"]["type"] != "image/png"))
&& ($ph > 2502400)
)
Thank you
[edit] I thing I solved it ,it wanted || and not &&