title: Large upload image file size
body: <p>I have increment the file size. But still doesn't work, I would like to add any of these codes and increase the size of the file if it is accessible...</p>
  
  <p>MySQL 5, PHP 5 </p>
  
  <pre class="lang-php prettyprint-override"><code>$permited  = array('jpg', 'jpeg', 'png', 'gif');
  $file_name = $_FILES['image']['name'];
  $file_size = $_FILES['image']['size'];
  $file_temp = $_FILES['image']['tmp_name'];
  
  $div = explode('.', $file_name);
  $file_ext = strtolower(end($div));
  $unique_image = substr(md5(time()), 0, 10) . '.' . $file_ext;
  $uploaded_image = "upload/" . $unique_image;
  
  
  if ($title == "" || $cat == "" || $body == "" || $tags == "") {
      echo "&lt;span class='error'&gt; Must be Fill&lt;/span&gt;";
  } else {
      if (!empty($file_name)) {
          if ($file_size &gt; 50048567) {
  
  
              echo "&lt;span class='error'&gt;Image Size should be less then 1MB!
      &lt;/span&gt;";
          } elseif (in_array($file_ext, $permited) === false) {
              echo "&lt;span class='error'&gt;You can upload only:-"
                  . implode(', ', $permited) . "&lt;/span&gt;";
          } else {
              move_uploaded_file($file_temp, $uploaded_image);
              $query = "UPDATE  tbl_post
          SET
  </code></pre>