[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 Helders

[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 option'), 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

[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 the

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

2010-03-24 Thread Bastien Helders
-03-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. To create the zip file I use

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

2010-03-25 Thread Bastien Helders
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 rquadl...@googlemail.com On 24 March 2010 15:19, Bastien Helders eldroskan...@gmail.com wrote: Hi Ashley, No, I set

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 eldroskan...@gmail.com 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
(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 eldroskan...@gmail.com Forgot to say, it is the second scenario that generate corrupted zip and text files with unexpected end of files. 2010/3/25

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

2010-03-26 Thread Bastien Helders
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 rquadl...@googlemail.com On 25 March 2010 13:31, Bastien Helders eldroskan...@gmail.com wrote: I'm really stumped

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

2010-03-26 Thread Bastien Helders
(build/Patch-6-3-2_Q3P15.zip) /STDERR 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 rquadl...@googlemail.com On 26 March 2010 08:51, Bastien Helders eldroskan...@gmail.com wrote: I've

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

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

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

2010-03-29 Thread Bastien Helders
, 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 rquadl...@googlemail.com On 26 March 2010 15:20, Bastien Helders eldroskan...@gmail.com wrote: I have checked the rights on the file

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

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

2010-03-30 Thread Bastien Helders
, 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 eldroskan...@gmail.com 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've edited out the sensitive

[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

[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