title: to upload the image equal =5 mb
body: <p><strong>my first page</strong> 
      
      </p>
  
  <pre><code>&lt;form action="2.php" method="post"
  enctype="multipart/form-data"&gt;
  &lt;label for="file"&gt;Filename:&lt;/label&gt;
  &lt;input type="file" name="file" id="file"&gt;&lt;br&gt;
  &lt;input type="submit" name="submit" value="Submit"&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  
  
  
  &lt;?php
  include "config.php";
  if ($_FILES["file"]["error"] &gt; 0)
    {
    echo "Error: " . $_FILES["file"]["error"] . "&lt;br&gt;";
    }
  else
    {
    $a=$_FILES["file"]["name"];
    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;";
  if (file_exists("upload/" . $_FILES["file"]["name"]))
        {
        echo $_FILES["file"]["name"] . " already exists. ";
        }
      else
        {
        move_uploaded_file($_FILES["file"]["tmp_name"],
        "upload/" . $_FILES["file"]["name"]);
        echo "Stored in: " . "upload/" . $_FILES["file"]["name"];
        }
      }
  </code></pre>
  
  <p>my 1st page is my form from which i select the file and click on the submit button 
  I want to upload the image equal to 5 MB and not more than 5 mb  but I don't how to set limit the size of image  . </p>