Questions tagged [ziparchive]

ZipArchive is a PHP extension for manipulating zip compressed archives.

ZipArchive provides procedural and object oriented approaches for creating, extracting and editing zip archives. The php manual provides a full documentation for both approaches, while on wikipedia history and technique of zip compression is covered.

818 questions
-1
votes
1 answer

Unzip apparently split .gz, .sit or .tar archive

We have an old dictionary software that seems to store the data in an SQLite database (an SQLite executable is shipped with the SW). We want to extract this database to create a machine learning database. In the installed folder (on Windows), we…
Ben
  • 71
  • 1
  • 6
-1
votes
1 answer

How to add a txt file in archive using System.IO ZipFile

I try to add a txt file in .rar archive using System.IO, but every time the archive is empty - 0kb. I receive error message like this: Unhandled Exception: System.IO.IOException: The process cannot access the file 'C:\M\Telegrami\Yambol.zip' because…
-1
votes
1 answer

when downloading the zip file from the url it showing like "The requested URL /export/name.zip was not found on this server." using php

Some of the zip files is download but some files showing like "The requested URL /export/1286.zip was not found on this server." But i am using the same code for both. final_zip($certificate_id); function final_zip($certificate_id){ $zip = new…
Priya
  • 51
  • 6
-1
votes
1 answer

Can't call the ZipArchive class

I have ZipArchive enabled, the PHP extension. In my class, when I run: $zip = new ZipArchive; I get this error: Fatal error: Class 'LukeMadhanga\ZipArchive' not found I am guessing the problem is how I call ZipArchive? Or a namespace issue?
Henrik Petterson
  • 6,862
  • 20
  • 71
  • 155
-1
votes
1 answer

Yii2 generate zip file and download- In YII2.0

I have a situation, I have list of user data, in that data details, i have stored a file also. Now i want to download all the file of users in zip file, when a user click on a button like DOWNLOAD. i have written a action in controller where im…
Salman Riyaz
  • 808
  • 2
  • 14
  • 37
-1
votes
1 answer

Generate backup with ZipArchive

i try to write a script, with which will generate backup for directory. I write this, but not work ... can't create zip file :S Maybe it's wrong, in my OOP style, i still newbie :-) Pastebin Code
-1
votes
1 answer

reading file text from a "Zip" file with "ZERO" compression ratio

I've the below code, that create a new zip file, then add entry to this file with NoCompression i.e. ZERO compression ratio then try to read this entry as normal text. using System; using System.IO; using System.IO.Compression; namespace…
Hasan A Yousef
  • 22,789
  • 24
  • 132
  • 203
-1
votes
1 answer

Error checking with ZIPARCHIVE::CREATE

I wish to check whether or not the $outZipPath is a valid one. When I have an incorrect drive, such as: $outZipPath = 'k:/backup.zip' // k drive does not exist $opened is still true, hence 'Path created' is always echoed. How can an incorrect…
havelly
  • 109
  • 1
  • 11
-1
votes
1 answer

Can create zip archive in PHP, but cannot download it correctly

I'm working on a CodeIgniter-based web app, and I'm implementing the functionality to download a zip file of the vehicle images in the admin for passing to third parties. I'm able to create the zip archive without problem - if I comment out the…
Matthew Daly
  • 9,212
  • 2
  • 42
  • 83
-1
votes
1 answer

extract the contents of a folder

I have been reading extractto for the php manual, and I understand exactly what it does. but my zip had: name.zip --foler ----files I want the files, I don't want the folder, I just want the files. These will over write files in a path I am…
TheWebs
  • 12,470
  • 30
  • 107
  • 211
-1
votes
2 answers

PHP ZipArchive large ExtractTo with folders

I'm having an issue with ZipArchive extractTo. I've a +300Mb ZIP file, with 100 folders and +3k XML files in each. When I start the process, it runs until 20 folders and the inside archives and stops working. This is my unzip function... public…
Raul Illana
  • 328
  • 1
  • 3
  • 11
-1
votes
1 answer

ziparchive Objective-C arc compatible

Possible Duplicate: error when import zlib in iOS: symbol(s) not found collect2: ld I am working on iphone project and I need a library to extract ZIP file I found ZipArchive but it doesn't compatible with ARC and when I add -fno-objc-arc to…
-2
votes
1 answer

How to check the size of a file inside zipped folder in unix?

Is there a way to check the compressed size of files inside a zipped folder, and split files which are greater than 500 KB. The objective is to have a zipped file with multiple files which are less that 500KB each.
Nadia Alice
  • 111
  • 5
-2
votes
1 answer

ZipArchive Created with System.IO.Compression is Damaged

I am having a hard time creating a ZipArchive successfully on Asp.net core MVC. I have an excel file generated with data that works and I need to put in an archive. This is what I've done so far public FileResult ExportGoodsReceiptData() …
Kacey Ezerioha
  • 1,068
  • 4
  • 22
  • 46
-2
votes
1 answer

Zip Not Being Created

I am trying to create a page that simply zips files, that's all there is to it. I added the check to make sure the method was actually being called, and it is, I am seeing the "ok" when the code is run, however, no ZIP file is being created. Any…
1 2 3
54
55