[PHP]Zip and text files generated are corrupted

2010-03-24 Thread Bastien Helders
Hi list, I've got this web app, which from a list of selected folders (with content) want to create a zip containing them as well as creating a text file with information about the chosen folders and how to use them. To create the zip file I use exec('zip -gr ' .$zipname.' * >> mylog.log'); in th

Re: [PHP]Zip and text files generated are corrupted

2010-03-24 Thread Bastien Helders
-24 at 15:34 +0100, Bastien Helders wrote: > > Hi list, > > I've got this web app, which from a list of selected folders (with content) > want to create a zip containing them as well as creating a text file with > information about the chosen folders and how to use them. >

Re: [PHP]Zip and text files generated are corrupted

2010-03-25 Thread Bastien Helders
add a folder or "zip -d build/Patch-6-3-2_Q3P15.zip software/hotfixes/hfFolder/HF-632Q3-127\*" to delete an unwanted folder returns all with status 2 and no output. 2010/3/24 Richard Quadling > On 24 March 2010 15:19, Bastien Helders wrote: > > Hi Ashley, > > > > N

Re: [PHP]Zip and text files generated are corrupted

2010-03-25 Thread Bastien Helders
Forgot to say, it is the second scenario that generate corrupted zip and text files with unexpected end of files. 2010/3/25 Bastien Helders > So I tested two scenario: > > - First, I gather all the files selected for the patch and then compress > them together and here is what

Re: [PHP]Zip and text files generated are corrupted

2010-03-25 Thread Bastien Helders
in php.ini (or anywhere else) that I could change to permit copy() or exec("zip") to run through without being interrupted? Regards, Bastien 2010/3/25 Bastien Helders > Forgot to say, it is the second scenario that generate corrupted zip and > text files with unexpected end of files

Re: [PHP]Zip and text files generated are corrupted

2010-03-26 Thread Bastien Helders
. I take it that the copy() is interrupted thus explaining the "unexpected end of zip files" (I can open the original patch P14 without any problem). I hope I made myself more clear on the details of my problem. Best Regards, Bastien 2010/3/25 Richard Quadling > On 25 March 2010 1

Re: [PHP]Zip and text files generated are corrupted

2010-03-26 Thread Bastien Helders
ror: Unexpected end of zip file (build/Patch-6-3-2_Q3P15.zip) Which was already known, as the call of copy() on the old patch P14 crop it and thus prevent any operation to be done on it. 2010/3/26 Richard Quadling > On 26 March 2010 08:51, Bastien Helders wrote: > > I've alread

Re: [PHP]Zip and text files generated are corrupted

2010-03-26 Thread Bastien Helders
ails. But if it is not a PHP timeout, what is it? 2010/3/26 Richard Quadling > On 26 March 2010 12:21, Bastien Helders wrote: > > I already used error_reporting and set_time_limit and the use of > > ini_set('display_errors', 1); didn't display more exceptions. >

Re: [PHP]Zip and text files generated are corrupted

2010-03-29 Thread Bastien Helders
quivalent of the php copy() function is the Windows copy command line. In this case, both copy on the big archive and zip -r on a big gathering of folder are running in the shell without any problem and repeatedly. 2010/3/26 Richard Quadling > On 26 March 2010 15:20, Bastien Helders wrote: &g

Re: [PHP] Re: optimizing PHP for microseconds

2010-03-29 Thread Bastien Helders
I have a question as a relatively novice PHP developper. Let's say you have this Intranet web application, that deals with the generation of file bundles that could become quite large (let say in the 800 MB) after some kind of selection process. It should be available to many users on this Intrane

Re: [PHP]Zip and text files generated are corrupted

2010-03-30 Thread Bastien Helders
nterrupted, all the memory taken by it is released. I don't know if I was clear about what I wanted to say... 2010/3/29 Bastien Helders > >I'm not sure. What is the exact command you are using? > > I'll show the code for the two scenario, maybe it'll help. I'v

[PHP] Beginner's question: How to run a PHP web application locally?

2010-04-08 Thread Bastien Helders
Hi List, The other day, I read an article that mentioned about a tool that would permit to simulate a web environment for PHP, so that testing could be made before uploading the page on the server. Unfortunately, I don't seem to find the article again. So here am I with this question: What should

[PHP] Touch an entry of a zip archive.

2010-05-18 Thread Bastien Helders
Hello list, I wanted to know, is it possible to change the modified time of a specific entry in the ziparchive? Or is it possible to set the modified time of a file when packing the file, so each file preserve its modified time? Best Regards, Bastien

[PHP]Keep the modification date of a file when archiving it.

2008-10-23 Thread Bastien Helders
Hi, When I'm archiving files in a ZIP file, using the class ZipArchive, the modification date is modified to when ZipArchive::close is called. I would like to keep the original modification date. Is that even possible? Best Regards, Bastien He

[PHP]Executing a .jar from a php script

2008-10-27 Thread Bastien Helders
Hi, I would like to execute a jar file using exec('java -jar JARNAME '), but so far, my web application didn't gave me any hint that it did anything (I tried to echo the result of the function, but nothing), and in fact I don't think anything was done. The jar file is in the same folder as the php