The script generates content based on data from the database (suppose it is an upload in csv format). I would like to apply archiving to the result, but so as not to create temporary files on the disk.
Is it possible to implement this in memory and how?
While doing so:
final class ClassPrefixGzipStream extends ClassPrefixStream { private $handle; final public function open() { $this->handle = gzopen(TEMP_PATH . $this->uniqueID, "w9"); } final public function write($string) { gzwrite($this->handle, $string); } final public function close() { gzclose($this->handle); } }