开发者

Files Compression Techniques in PHP

We are making one web site on which site users, can upload the data.
Data will be in any format. means it can any media file or any image file or any video file or any document file.

Any compression technique for any data.

We are using PHP.

Anything you suggestion by which whatever the data gone on server, it should be in minimum size.

Any suggestion technique. But first rule is, data should 开发者_C百科be compressed maximum.

And it will be greatly appreciated if you can suggest me with out any software, use by just coding.

Thanks in advance.


You can compress it (create a tar file for example) when moving the file from its temp upload location to a more permanent place on disk. However the file types you are talking about are binary files which don't always compress very much. Second no one compression scheme will result in the best results for all file types.


there is a way to compress files for different type of files there are tools e.g. for media data FFmpeg the good solution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜