Creating a GZipped tar file and dynamically streaming it via PHP?

烈酒焚心 提交于 2019-12-01 17:35:26

This link may be useful to you. Can you be more specific on not wanting the file to be temporarily on the filesystem?

http://www.clker.com/blog/2008/03/27/creating-a-tar-gz-on-the-fly-using-php/

You can direct the tar command with passthru() or exec() to send the tar.gz file to stdout. E.g.

tar cfz - name1 name2 ...
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!