Unable to do File Upload in PHP
<p>I want to upload files in PHP. I wrote</p>

<pre><code>&lt;form target="_self" enctype="multipart/form-data"&gt;
&lt;input type="file" name="file" id="file" /&gt;
&lt;input name="submit" type="submit" value="submit" /&gt;
&lt;/form&gt;
&lt;?php

if ($_FILES["file"]["error"] &gt; 0)
  {
  echo "Error: " . $_FILES["file"]["error"] . "&lt;br /&gt;";
  }
else
  {
  echo "Upload: " . $_FILES["file"]["name"] . "&lt;br /&gt;";
  echo "Type: " . $_FILES["file"]["type"] . "&lt;br /&gt;";
  echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb&lt;br /&gt;";
  echo "Stored in: " . $_FILES["file"]["tmp_name"];
  }

?&gt;
</code></pre>

<p>but it's not working. Files are not visible to me, that where they are going?</p>
