|
|
 |
Re: FN-FORUM: PHP download script part 2
date posted 28th January 2008 08:52
Quoting Steven Lavine [EMAIL REMOVED]
>
> Hi all,
>
> [snip]
> 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.
>
First thing I'd suggest is to make sure you're reading from the =20
correct folder. From the error message, I'd say you're trying to find =20
a file in /home/steven/Desktop even though you're downloading from a =20
server. If you've copied this locally, that would make sense. But if =20
you're downloading from the site, the odds are that you're creating =20
the zip file in a folder that isn't that one.
So check your folders, make sure you're a) creating the .zip file =20
in the right place and b) that you're trying to download that .zip =20
from the same place.
Also, you're creating the file with the extension .jpg.zip.zip, =20
which strikes me as being *very* wrong. If you've created =20
bnk1.jpg.zip, and it's trying to d/l bnk1.jpg.zip.zip , then it's =20
never going to work.
Alex
www.ozbon.com
|
 |
|