Login   Register  
PHP Classes
elePHPant
Icontem

solution to split files?

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Zip  >  All threads  >  solution to split files?  >  (Un) Subscribe thread alerts  
Subject:solution to split files?
Summary:solution to split files?
Messages:4
Author:Rene Ettling
Date:2013-01-23 12:41:32
Update:2013-01-23 13:31:50
 

  1. solution to split files?   Reply   Report abuse  
Picture of Rene Ettling
Rene Ettling
2013-01-23 12:41:32
Hi,

first of all => great Class.

But ist there an solution to split the Zip into several zip files?

THX

Rene

  2. Re: solution to split files?   Reply   Report abuse  
Picture of Asbjorn Grandt
Asbjorn Grandt
2013-01-23 12:55:21 - In reply to message 1 from Rene Ettling
Not at the moment.

The issue never came up as you can't really serve multiple files in one request anyway, and if you do it'll amount to the same volume of data anyway.

But I can see where it might be useful if you save the files on the server for use later.

I'll have a look at it. If nothing else out of curiosity :P

  3. Re: solution to split files?   Reply   Report abuse  
Picture of Rene Ettling
Rene Ettling
2013-01-23 13:14:47 - In reply to message 2 from Asbjorn Grandt
wow fast Respone, i'm impressed ...

but i have another Prob.

i need an solution to come around the max_execution_time from 30sec on a shared host. ini_set and .htacces php value set isn't working for me ...

the zip File is around 600MB. Any hint for me?

thx.

Rene

  4. Re: solution to split files?   Reply   Report abuse  
Picture of Asbjorn Grandt
Asbjorn Grandt
2013-01-23 13:31:50 - In reply to message 3 from Rene Ettling
Is it max execution time, or is it the socket time out?

If it is the latter, try the ZipStream instead, as it'll send the data as the files are compressed (won't help if it is a single large file being compressed though).

I assume the mas execution time is set by your host/provider.
The closest I can come to this is:
http://php.net/manual/en/function.set-time-limit.php

But again, that'll only work if your sever isn't running in "safe mode".