php-ziparchive Questions
15
Solved
I'm using PHPExcel to export some data to user in an excel file. I would like the script to send the excel file to the user immediately after it's creation. Here is my test code:
try{
/* Some te...
Chook asked 29/1, 2014 at 16:31
2
Solved
PHP 8 changes how the "open" of a ZIP archive works and it is noted that:
Using empty file as ZipArchive is deprecated. Libzip 1.6.0 do not accept empty files as valid zip archives any l...
Wolters asked 5/11, 2020 at 14:10
23
Solved
I have a problem when I install 'Archive_Zip 0.1.1' on the Linux server, but when I try to run the script to create the zip file it gives the fatal error
Fatal error: Class ZipArchive not found in...
Ergocalciferol asked 6/10, 2010 at 12:47
3
Solved
I created an application, which using method extractTo() in class ZipArchive (standard in php) and I tested it on my localhost apache server on Windows 7 without any problem. But after I tried it o...
Excursus asked 16/9, 2012 at 11:43
3
I am running into some issues installing the PHP zip archive and not sure how to fix this. I am running Ubuntu 18 with PHP 7.2
The error I receive in terminal is
The following packages have unmet...
Focalize asked 13/6, 2018 at 13:50
5
Solved
I am running Virtuamin on centos 7, I am unable to install ziparchive on php 7.4, but when I switch to php 7.2, it works. I need php 7.4 to work because it is faster and wordpress script need...
Excavation asked 6/2, 2020 at 9:55
8
Solved
I am getting zip file downloaded by following code without any error but the downloaded zip file is empty or corrupted and size is always about 200 Bytes.
i.e. I cannot open that zip file.
Also Zip...
Pall asked 9/2, 2013 at 22:1
4
Solved
I am trying to fix an issue in an auto-zip script for some images, which I wrote a while ago and it worked until now. Everything seems fine until $zip->close(); which gives the following:
<...
Ladysmith asked 18/5, 2016 at 12:19
3
I've just downloaded PhpSpreadsheet package via composer and I tried to generate an Excel spreadsheet. But all I get is an error "Class ZipArchive not found ". I work on Windows. In...
Neoplatonism asked 20/4, 2018 at 13:45
5
I want to read an xlsx file that was created in Microsoft Excel, but when I run the following code...
$Source_File = "test.xlsx";
$Spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($Source_F...
Carrizales asked 17/12, 2018 at 21:28
2
Solved
I've got a simple Python zipapp built with the following command:
python -m pkg/ -c -o test -p '/usr/bin/python3' -m 'test:main' zipapp
I would like to access the binary file from the script
$ ...
Salinometer asked 13/11, 2019 at 11:32
4
I'm using the php ZipArchive class in order to generate a zip archive. I use the second parameter of the addFile method in order to set the name of the file in the archive (since the real file on d...
Coppage asked 15/2, 2011 at 14:58
4
Solved
I would like to create a zip file in memory using a ZipArchive (or a native PHP class) and read the content of the file back to the client. Is this possible? If so, how?
The files that I want to z...
Annamariaannamarie asked 12/11, 2010 at 13:51
1
I have laravel project and whant to add feature for ziping files. I am using php ZipArchive. When I'm trying to create ZIP file using just PHP, I have luck, but when I'm trying with Laravel, zip fi...
Lifesaving asked 5/4, 2017 at 7:48
6
Solved
Well, first of all, this is my folder structure:
images/
image1.png
image11.png
image111.png
image223.png
generate_zip.php
And this is mine generate_zip.php:
<?php
$files = array($l...
Chloride asked 17/7, 2013 at 19:26
14
Solved
I am using PHP's ZipArchive class to create a zip file containing photos and then serve it up to the browser for download. Here is my code:
/**
* Grabs the order, packages the files, and serves t...
Garrot asked 6/1, 2011 at 21:42
4
I am using CodeIgniter and PHPExcel to read and write to excel files.
Everything worked fine in localhost, but when I uploaded my PHP CodeIgniter application to the server in pagodabox I got the b...
Unstable asked 16/4, 2013 at 17:35
3
Solved
I have folders that have user generated images that get rather large. When trying to zip these I am getting errors around 1.5 gig sized zip files.
My questions have to do with memory and I think ...
Paske asked 20/4, 2013 at 15:12
5
When I trying to open my zip file which is generated by PHP Zip Archive, there is an alert showing
"Windows cannot open the folder. The Compressed (zipped) Folder
'filename' is invalid." error ...
Agnew asked 30/11, 2012 at 13:41
1
Solved
I am using php ZipArchive and I have run into a simple problem.
I need to create new file and if there is existing file with that name I need to overwrite it.
My problem is this, if I use this co...
Academia asked 8/3, 2018 at 2:45
3
need some help for laravel zip file. i have a folder in the public folder and i would like to create a zip of that folder (temp_file folder) whenever the user clicks the button.
public function te...
Article asked 2/8, 2017 at 1:50
1
Solved
PHP ZipArchive dont support UTF8 files for open
my problem is OPEN files with UTF8 name. ZipArchive dont open files with UTF8 character. i dont add new file i need only open file.
php: 5.6 and Us...
Proffer asked 17/7, 2017 at 21:34
2
Solved
I am using the following script to move the files of my directory (in this case My_Theme) to the zip archive wordpress.zip.
define('CLIENT_PATH', $_SERVER['DOCUMENT_ROOT'] . '/wp_theme/clients_temp...
Gladygladys asked 27/1, 2017 at 12:37
5
When I run:
php composer.phar require kartik-v/yii2-widgets "*"
I get the following output (using the -vvv verbose flag):
- Installing kartik-v/bootstrap-fileinput (v4.1.7)
Downloading https:/...
Callboard asked 19/3, 2015 at 1:19
4
Solved
I want to list the files inside an archive, without their extraction.
The types of archives I am interested in:
.7z (7-Zip)
.rar (WinRAR)
.tar (POSIX, e.g. GNU tar).
.zip (ISO standard, e.g. Win...
Pitiable asked 21/7, 2016 at 17:32
1 Next >
© 2022 - 2025 — McMap. All rights reserved.