I'm looking for a best practice method to deserve directory content on download to a user.
Currently I give to users, two techniques : - One by One download using PHP and XSendFile for Apache to better deserve files - A stack for "zipping" a directory temporary (24hours) and download a zip containing a whole directory with the directory hierarchy.
But I'm looking for a better support on a whole directory download in PHP (or other). Do you have any kind of idea to get lower CPU/memory cost and deserve a whole directory faster ?
(The only restriction is to be on server side and the user is navigating through a web browser)
Thank you !