English 中文(简体)
如何编篡和通过档案,以备浏览?
原标题:How to zip and pass-through files to browser on-the-fly?

我愿实施诸如“把所有附件都作为吉卜赛人档案”。

是否有办法在服务器上挑选多份档案,将其整理起来,并在浏览器上通过。 (有些与PHP的运行相类似) 用于附件流的用途

[EDIT]

你们似乎误解了我的意图,所有这些例子都需要创建和近的档案,在发送之前,我想在建立档案时进行流传。

Something like unix command (from zip manual): zip -r - . | dd of=/dev/nrst0 obs=16k

<>strong>[EDIT2]

我有大约2吨的机器人档案(和100吨)供使用,等待建立动脉注射器,以实施排泄机制并占用储存空间。 如果能够直接通过溪流/管道进行浏览,那么我为什么在档案中写上头盔?

最佳回答

Have a look at ZipStream-PHP library - it claims to do what you need.

问题回答

Your PHP host could happen to have the zip extension installed. If so, you should use it. (performance reasons)

否则,对于齐普档案来说,一个没有附属关系的好图书馆是PclZip

明显有PEAR图书馆,但现在已经做了解释,重点已经转移到PECL(binary)延伸部分。 (整个PEAR生态系统正在逐渐崩溃,无论如何)





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签