Zipping
Basically - I want to develop some routines that I can 'read' a file
(ascii / text) that has been zipped up...
I have not found the right command to actually zip up the file in the first place. (automatically via a PHP script)...
Can someone point me to a tutorial / page on actually zipping up files
- into a zip file please...
View Complete Forum Thread with Replies
Related Forum Messages:
Dynamic Zipping
I'm working on a downloads site at the moment and need to have a sort of dynamic zipping system, i'll explain: 1. A user visits the site, they are given an individual ID 2. They browse through the files and can click on the 'Add to Download' button if they wish. 3. If they click on the 'Get Download' button, then they are sent to a page, which offers them all the files they selected in a .zip or .tar file for downloading.
View Replies !
Zipping Files
I would like to have a form where users select checkboxes that correspond to the files they are interested in receiving. Then have php "package" those files as 1 (i.e. zip or some other compression format) for immediate download.
View Replies !
Zipping All Files In Directory
I need to come up with a script hat will zip all the files in a directory at download. I am working with a virtual host and couldn't tell you if they have any zipping functions compiled with php. Can i still do this? Also how would i find out if the zipping functions are compiled in php? I have never done this before and am drawing a blank on what i should be looking for or at. Thanks guys
View Replies !
Un-zipping File Problem
Below is a bit of code that opens up and reads a zip file. I'm having trouble working out how to read in line by line. The file I am unzipping is a CSV file and I need to return each line so I can work on them $zip = zip_open("$filepath"); // << full path of the file if ($zip) { while ($zip_entry = zip_read($zip)) { if (zip_entry_open($zip, $zip_entry, "r")) { $buf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry)); print "$buf<br> "; // << what to return each line so i can work on it zip_entry_close($zip_entry); } echo "<br> "; } zip_close($zip); }
View Replies !
Download A Directory Without Zipping
I have groupings of files in different folders. The users have the option of downloading each file individually or the entire folder that that file is in. is there a way for me to allow the user to download the entire folder without me having to zip the folder? Like sometimes on torrent you can download something and it shows up in a folder unzipped. Any ideas?
View Replies !
Zipping External Files
I was wondering if its possible to build a zip for external files, specifically images. I havnt used PHP's zip features before and if it can't do what I want it to, I don't wanna spend time learning how to use it so im wondering if theres anybody that knows the answer to this question or someone who is experienced and is willing to try it out for me /
View Replies !
Zipping Up A Folder And Its Contents?
I installed the zip extension for PHP 5.2, but reading the documentation, I can't figure out how to zip up an existing folder. I mean, I have this folder with a bunch of files in it, right? I *could* scan the whole thing and add each file to a newly created zip archive, but I don't want to. Is there any way to tell PHP to zip up a folder and have its contents be everything inside that folder?
View Replies !
Zipping Multiple Files
i am working on a php page, process_extract_papers.php, that helps to zip documents for me. One problem i faced was that when the documents are more than 20mb, the system will fail and thats because it exceeds the temp directory memory. And instead of zipping one big file, i want to zip multiple files instead. Firstly, it will be much easier to download. The problem is that i managed to zip the first file and able to download it. So get the next part of the file, i will need to press a button called Extract Next. However, even though i did that, when i press start download button, i will still be downloading the first file.
View Replies !
Recursive File Saving/zipping
it will keep the structure, copy it to a zip file/tar.gz/rar or whatever and email it as an attachment. Say the script is in my server root. script.php folder1/ folder1/index.php folder1/images/ folder1/images/logo.jpg folder1/images/header.gif folder2/files/super.zip folder9/some/etc.txt script.php would keep the file structure for everything beneath it and compress it and email it. I have been trying to find something like this online, but have been having trouble. this is pretty much just for a backup cron job that.
View Replies !
PHP Exec() And Zipping Upload File In Windows
I have the following code. What I need is to zip the file (c:webuploadsomeFile) to d:websomeFile.zip. $cmd = 'c:zipzip.exe '. $movedFile. ' '. $finalFile; exec( $cmd, $cmd_output ); File is being uploaded by the apache server, but it's not being zipped. My guess "", escaping, is causing problem in windows path. Do I also have to escape the $movedFile content? Forexample $movedFile= "c:webuploadsomeFile".
View Replies !
|