unexpected T_BOOLEAN_OR
<p>I am receiving an error with this code. I am new to PHP but it is my understanding that <code>||</code> is translated to 'OR'. I am trying to check if the uploaded file meets any of the three conditions, and if so set an error. </p>

<pre><code>if ($uploaded_size &gt; 1048576) || 
   ($uploaded_type == 'application/octet-stream') || 
   (file_exists($target))
{ 
    echo "Error: File was not uploaded.&lt;br&gt;"; 
    $ok=0; 
} 
</code></pre>

<p>The error states that "unexpected T_BOOLEAN_OR"</p>
