title: PHP Image Display using my code
body: <p>First File
  
  </p>
  
  <pre><code>&lt;body&gt;
  
      &lt;form action="_31_upload_file.php" method="post" enctype="multipart/form-data"&gt;
          File: &lt;input type="file" name="file" id="file"&gt;&lt;br&gt;
          &lt;input type="submit"&gt;
      &lt;/form&gt;
  &lt;body&gt;
  </code></pre>
  
  <p></p>
  
  <p>Second File</p>
  
  <pre><code>&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"];
  $img = $_FILES["file"]["tmp_name"];
  echo $img;
  
  
  }
  
  
  ?&gt; 
  &lt;img src="&lt;?php echo $img; ?&gt;" height="200" width="200"&gt;
  </code></pre>
  
  <p><strong>My program is working well. But help me regarding IMAGE display using this code.</strong></p>
  
  <p>I am using img tag, and src attribute as well. but image is not displayed on webpage.</p>