Re: Zip and text files generated are corrupted

From: Date: Thu, 25 Mar 2010 16:26:21 +0000
Subject: Re: Zip and text files generated are corrupted
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-303453@lists.php.net to get a copy of this message
On 25 March 2010 13:31, Bastien Helders <eldroskandar@gmail.com> wrote: > I'm really stumped, it seems that although the script is running under the > time limit, if a single instruction such as exec("zip") in the first case, > or copy() in the second case are timing out, because it takes too much time > processing the big file. > > Is there any configuration in php.ini (or anywhere else) that I could change > to permit copy() or exec("zip") to run through without being interrupted? > > Regards, > Bastien > What is the output of the exec when the command fails? Not the return value of exec() which is the last line, but the whole thing, which is returned in the second parameter. If you can't see it due to pushing the file as part of the script, then try something like ... exec('zip ....', $Output); file_put_contents('./ZipResults.txt', $Output); -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling

« previous php.general (#303453) next »