Re: Archive Tar + HTTP_Download problems
| From: | Jeroen Houben | Date: | Thu, 23 Sep 2004 10:00:24 +0000 |
| Subject: | Re: Archive Tar + HTTP_Download problems | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14609@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
On Wed, 22 Sep 2004 15:49:32 +0200, Jeroen Houben <jeroen@terena.nl> wrote:JeroenHi, I'm trying to send a Tar file to the browser. I create it using Archive_Tar. I send it using HTTP_Download. No matter what options I choose (tar, tgz, bz2) it doesn't work, WinRAR always calls the file corrupt. But if I go directly to my Linux server (using Samba) I can open the gerenated file just fine. Note that I am *not* using ob_gzhandler or zlib.output_compression.Try opening the file in Notepad on the Windows client. There may be notices or warnings in it from PHP. These get written as if they're part of tha tar file. No notices, but I found out that my script had generated some output. Getting rid of that fixed my problem.