title: Is there a limit on PHP file_get_contents?
body: <p>I am trying to read a large file (10M) using php file_get_contents</p>
  
  <pre><code>$file = 'http://www.remoteserver.com/test.txt';
  $data = file_get_contents( $file );
  var_dump ( $data );
  </code></pre>
  
  <p>It dumps back</p>
  
  <pre><code>string(32720)
  </code></pre>
  
  <p>and then the output with only showing part of the file. Is there a limit somewhere of file_get_contents? I tried doing ini_set('memory_limit', '512M'), but that did not work.</p>
  
  <p>EDIT: ** <strong>forgot to mention</strong> ** it's a remote file.</p>
  
  <p><strong>PROBLEM RESOLVED</strong>:: Out of HDD space. Fixed that and now everything works.</p>