title: File size limit exceeded - transferring a file using fopen - php to ftp
body: <p>I have a php file that connects to a remote ftp server, and writes a file. Recently, I've been getting an error that says "File Size limit exceeded" everytime it tries to run the following command. This has worked in the past and it is just now starting to happen.</p>
  
  <p>The file is just 2 lines of text, so there shouldn't be a file size issue. Can anybody help me debug what is going on?</p>
  
  <pre><code>$varrate =$result-&gt;GetLastRealTimeMetalQuotesResult-&gt;MetalQuote-&gt;Rate;
  $varrate = round($varrate,2);
  
  $res = array($varrate, $varclose);
      print_r($res);
      // it's rate then close
      echo "\n"; 
      echo "time to die is ";
      echo $stopitafteraminute-$est;
  $fp=fopen("ftp://user:pass@website.com/public_html/rpc-server/textfile.txt", "w", 0, $stream_context);       
  foreach($res as $key =&gt; $value)
      {
          fwrite($fp,$value."\n");
      }
  fclose($fp);
  </code></pre>