好的,所以我正在上传文件,他们有加密的名称一旦上传,事情是我想压缩他们,所以当一个链接到达它下载而不是显示
<?php
$fileName = $_FILES["file1"]["name"]; // The file name
$fileTmpLoc = $_FILES["file1"]["tmp_name"]; // File in the PHP tmp folder
$fileType = $_FILES["file1"]["type"]; // The type of file it
我想在php中下载zip文件。下面是我的代码。
<?php
ob_start();
// set example variables
$filename = "test.zip";
$filepath = "/home/somewhere/file/zip";
// http headers for zip downloads
header("Pragma: no-cache");
header("Expires: on, 01 Jan 1970 00:00:00 GMT");
header("Cache-Cont
我是wordpress的新手。我创造了我自己的插件,它对我来说很好.现在我创建了rar/zip文件我的插件文件夹..。我正在上传我的插件.rar文件在我的另一个wordpress项目..。
它给出了错误
The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
通过FTP,它在我所有的wordpress项目中运行得很好.但我想让它上传。
我的插件文件结构是:--
/mypluging_dir
**--images---