PHP 8.5.0 Alpha 4 available for testing

Voting

: two plus two?
(Example: nine)

The Note You're Voting On

Anonymous
17 years ago
katzlbtjunk's method is certainly shorter, but it is unusable for anything except small files. It would try to load the whole file into memory, then create an entire compressed copy, and only then write it to disk. The other method given below will not exhaust memory like that.

<< Back to user notes page

To Top