|
|
 |
Re: FN-FORUM: PHP download script part 2
date posted 28th January 2008 13:05
Hi Steven,
Steven Lavine wrote:
> I decided to go the compressed file route, my download script now
> compresses the file into a zip file. If I access the zip file via FTP,
> I can download the file and extract the contents without any problems.
> However whenever I download via the script I get the following error:
>
> [/home/steven/Desktop/BNK1.jpg.zip]
> End-of-central-directory signature not found. Either this file is not
> a zipfile, or it constitutes one disk of a multi-part archive. In the
> latter case the central directory and zipfile comment will be found on
> the last disk(s) of this archive.
> zipinfo: cannot find zipfile directory in one of
> /home/steven/Desktop/BNK1.jpg.zip or
> /home/steven/Desktop/BNK1.jpg.zip.zip, and cannot find
> /home/steven/Desktop/BNK1.jpg.zip.ZIP, period.
Apologies if you've already tried this, but I'd be inclined to hexdump
the working and non-working ZIP files and do a comparison of them. If
they don't start with the same stream of bytes then I'd strip down your
download script until it can send the first byte of the ZIP file without
corruption, and work from there.
cheers,
Richard
|
 |
|