You are here: zipping problem « All PHP « IT news, forums, messages
zipping problem

Posted by Brian on 10/10/59 11:17

Hi all (again)

First off sorry for all the recent post, this little site I'm
working on is turning into the thorn in my side.

Right I have a script that zips files on the fly.

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=957&lngWId=8

All works find, except when I try to export a big file.
My script runs a MySQL query, which in turn builds up
a big string of comma separated values, which in turn gets
zipped up into a csv file.

The trouble is some of these queries are BIG, in fact if I
were to write them out to a file first they can be as big as
25Mb, and the server can't hold a 25Mb string in memory
before it zips it Even if i wrote them out first i still need to
read it back in to memory to run the zip function.

So I was thinking is working out the max size the server can
handle, and breaking the zipped files up into smaller files so the
user downloads several files instead

But has anybody else got a better ideas or suggestions?


Brian

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация