title: PHP: fseek() for large file (>2GB)
body: <p>I have a very large file (about 20GB), how can I use fseek() to jump around and read its content.</p>
  
  <p>The code looks like this:</p>
  
  <pre><code>function read_bytes($f, $offset, $length) {
      fseek($f, $offset);
      return fread($f, $length);
  }
  </code></pre>
  
  <p>The result is only correct if $offset &lt; 2147483647.</p>
  
  <p><strong>Update:</strong> I am running on windows 64,
  phpinfo - Architecture: x64,
  PHP_INT_MAX: 2147483647</p>