J
J
jocry2015-12-05 18:31:21
PHP
jocry, 2015-12-05 18:31:21

Is it possible to simultaneously compress files into an archive and return it to the user using php?

Is it possible to archive this data using php in such a way that it would simultaneously write them to disk and give them to the client?
Or you need to create a separate thread in which files will be archived, while the main thread will read the file with the archive until all files are compressed and the entire archive is read.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2015-12-05
@jocry

Yes, you can. You archive directly to the stream. There is a php zipstream library - google it. I am using it successfully.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question