Hi Guys,
I got the error below when running this code. I am trying validate that both files (picture & thumb) are jpg or gif images.
Parse error: parse error, unexpected T_BOOLEAN_OR in .....
// Validate the type. Should be jpeg, jpg, or gif.
$allowed = array ('image/gif', 'image/jpeg', 'image/jpg', 'image/pjpeg');
if (in_array($_FILES['picture']['type'], $allowed)) || (in_array($_FILES['thumb']['type'], $allowed))
{
// If all is ok begin picture uploading
Can anyone offer any advice, thank you 🙂