Hello, I've been looking and trying a lot of things but I cant find a solution to this problem. Here it is the scenario, Im building a big tar file (about 70~100 Mb) on the fly, mainly fetching information from a MySQL DB and from other raw files of my own. The output file is very redundant so I want to encode it as gz to make it lighter.
The problem is this: The only way I came to encode it is using the php function gzencode, however I have first to build the tar file (I'm building it using Output Buffering) to pass the data to the encoding function. The process of building the tar file takes time, and no output is generated durating this time, so the "Save As..." Dialog doesn't show up until the output is started (As I stated, after building and gzipping the tar file).
Does anybody knows a way to tell the client that we are going to send a file but maybe we will delay to start delivering content?
Or there is a way to gzip chunks of data inside a gzip file?
Thanks in advance, and please excuse me for my bad English.
The problem is this: The only way I came to encode it is using the php function gzencode, however I have first to build the tar file (I'm building it using Output Buffering) to pass the data to the encoding function. The process of building the tar file takes time, and no output is generated durating this time, so the "Save As..." Dialog doesn't show up until the output is started (As I stated, after building and gzipping the tar file).
Does anybody knows a way to tell the client that we are going to send a file but maybe we will delay to start delivering content?
Or there is a way to gzip chunks of data inside a gzip file?
Thanks in advance, and please excuse me for my bad English.
Comment