PHP Upload Form
<p>I want to build a working upload file form and I use codes in this tutorial - <a href="http://www.w3schools.com/PHP/php_file_upload.asp" rel="nofollow">http://www.w3schools.com/PHP/php_file_upload.asp</a></p>

<p>Everything works well. The only problem is, the original code only includes file type of gif and jpg. I need png also.</p>

<p>What I did is modified this lines :</p>

<blockquote>
  <p>if ((($_FILES["file"]["type"] == "image/gif")
  || ($_FILES["file"]["type"] == "image/jpeg")
  || ($_FILES["file"]["type"] == "image/pjpeg"))</p>
</blockquote>

<p>to this :</p>

<blockquote>
  <p>if ((($_FILES["file"]["type"] == "image/gif")
  || ($_FILES["file"]["type"] == "image/jpeg")
  || ($_FILES["file"]["type"] == "image/pjpeg"))
  || ($_FILES["file"]["type"] == "image/png"))</p>
</blockquote>

<p>but it turns error. Any advice?</p>
