Re: Archive Tar + HTTP_Download problems

From: Date: Thu, 23 Sep 2004 08:03:57 +0000
Subject: Re: Archive Tar + HTTP_Download problems
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14605@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:
Hi, 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. Thanks Justin,
I can't see any notices in the file. WinRAR can open the file through Samba just fine. It opens it and extracts the files, no problems. So it looks like the TAR file was generated correctly, but once I send it to the browser something goes wrong and the file gets corrupted and WinRAR can't open it. What's even weirder is that both files (the one generated on the server and the one sent to the browser) are exactly the same size.. Jeroen

« previous php.pear.general (#14605) next »