title: move_uploaded_file - max file size issue
body: <p>I'm trying to upload a file on my server with PHP,
  But it fails :</p>
  
  <p><code>move_uploaded_file()</code> returns false.</p>
  
  <p>My file is a text file of 230,000 chars (224 ko)</p>
  
  <p>However, if I try to reduce the file to 4500 chars, It works well.</p>
  
  <p>Is there a maximum of the number of character ?</p>
  
  <pre><code>&lt;?php
  
  $host="";
  $user="";
  $pass="";
  //$db = mysql_connect($host,$user,$pass);
  //mysql_select_db('paul_biaudet',$db);
  $dossier = 'update-';
  
  $fichier = basename($_FILES['avatar']['name']);
  
  $taille_maxi = 100000;
  $taille = filesize($_FILES['avatar']['tmp_name']);
  $extensions = array('.txt','.doc');
  $extension = strrchr($_FILES['avatar']['name'], '.'); 
  //security
  if(!in_array($extension, $extensions)) 
  {
       $erreur = 'Vous devez uploader un fichier texte';
  }
  if($taille&gt;$taille_maxi)
  {
       $erreur = 'too big';
  }
  if($_FILES['avatar']['name']!='shapes.txt' &amp;&amp; $_FILES['avatar']['name']!='routes.txt' ){
      $erreur='...';
  }
  if(!isset($erreur)) //no error :  upload
  {
  
       $fichier = strtr($fichier, 
            'ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïðòóôõöùúûüýÿ', 
            'AAAAAACEEEEIIIIOOOOOUUUUYaaaaaaceeeeiiiioooooouuuuyy');
       $fichier = preg_replace('/([^.a-z0-9]+)/i', '-', $fichier);
       if(move_uploaded_file($_FILES['avatar']['tmp_name'], $dossier . $fichier)) 
       {
       ...
      }
  else 
   {
        echo 'fail';
   }
  </code></pre>
  
  <p>And .... it's a fail </p>