FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


tar/gzip stream





kv
I need a script which tars and gzips few selected directories/files and sends it to browser. All the code I have seen on net either

1. creates a local file and then sends it to browser

or

2. creates the archive in memory (expensive for large archives) and sends it to browser.

I want neither of them, but want to send the gzip stream directly to the browser as and when created (like "download home directory" link in cpanel->backup). This will enable download to start immediately without the entire archive being created in memory or on disk.

How can I achieve this? Any links to working scripts will be really helpful.
thinkingskull
i remember seein an article .... a very nice one... i think it was on andy's site.... check out andy gutmanns site..... search for "zip php" i guess u'll find ur stuff there
Related topics
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.