A technique for processing large text files in PHP without running into memory limits or timeouts. The approach splits file parsing into chunks using start and max-line parameters, then uses HTTP redirects (header Refresh) combined with PHP sessions to reload the same script with updated offsets — effectively resetting memory

3m read timeFrom patrickbrosset.com
Post cover image

Sort: