我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

使用PHP从文本文件创建ZIP文件

I have a text file that contains the path to multiple files in the server, 1 file per line, is there a way to read those lines and create a zip from em?

Thanks in advance.

PHP has functions for creating zips.

Here is a simple example: http://davidwalsh.name/create-zip-php

You'll need to read the file names, put them into a list, and use the function in the example.

近期文章

  • 从多个文本输入框复制到文本区域:
  • 怎么可能是网站的后端代码是C ++而前端是PHP? [关闭]
  • mysql_num_rows(); 和header(); 给出重定向循环
  • 自定义wordpress登录页面
  • jquery表示是否未选择选项
  • 从下拉列表中按字母顺序选择“最近”选项
  • mysqli_connect失败并显示dbpassword
  • 在函数的包含文件中使用变量
  • 如何确定数组的值
  • 使用PDO将记录插入宽表中
  • php中的XML解析:Simple_xml_loadfile函数永远运行
  • 如何使用PHP / jQuery处理上传的文件?
  • 监视mysql表的订单和存储订单历史记录
  • 在Javascript文件中在屏幕上打印html输入属性和变量
  • if和else格式? PHP
  • 自动获取Getter和Setter性能选项而不是__call
  • 错误处理,500内部服务器错误
  • PHP中的Foreach循环,键分配错误
  • 我创建的php页面应该在mysql表中添加条目,但是没有对表做任何事情
  • 使用正则表达式查找ID中的大小

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华