创建一个 GZipped tar 文件并通过 PHP 动态流式传输它? [英] Creating a GZipped tar file and dynamically streaming it via PHP?

查看:22
本文介绍了创建一个 GZipped tar 文件并通过 PHP 动态流式传输它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有像 ZipArchive 这样的简单界面,用于 tar.gz 档案,允许我将档案流式传输到客户端而不是将其保存在服务器上?如果是这样,有人可以告诉我怎么做吗?

Is there an easy interface like ZipArchive for tar.gz archives that allows me to stream the archive to the client rather than save it on the server? And if so, could someone show me how?

谢谢!

推荐答案

此链接可能对您有用.您能否更具体地说明不希望该文件暂时存在于文件系统中?

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/

这篇关于创建一个 GZipped tar 文件并通过 PHP 动态流式传输它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆