php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #11597 File I/O on large files is near impossible with PHP
Submitted: 2001-06-20 21:58 UTC Modified: 2002-01-28 20:55 UTC
From: dave at icezip dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.5 OS: Linux
Private report: No CVE-ID: None
 [2001-06-20 21:58 UTC] dave at icezip dot com
File I/O on large files is near impossible with PHP.  File() eats way too much ram, and is slow, and the fopen() method is slow and hard to seek to a line where you left off processing at. Perhaps including functions that allow reading a given line of a file, checking the total number of lines, and more speed/ram aware I/O functions to allow processing of log files, and other large files.

I'm not a c coder, but I'm more than willing to help in any way I can.

Thanks and keep up the good work.


--Dave

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-28 20:55 UTC] yohgaki@php.net
DIO extension (Direct IO) will do it nicely
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 21:01:31 2025 UTC