How to config infozip and unzip (php+apache+winxp)

Desmond

Joined: 2004-07-06
Posts: 19
Posted: Thu, 2004-07-08 04:52

I have embedded gallery 1.4.3 into phpbb2 with php4.3 and apache1.3 on winxp pro. I try to follow the faq B5 and download two files (unz551dN.zip & unz551xN.exe) from this link http://www.mirror.ac.uk/sites/ftp.info-zip.org/pub/infozip/WIN32/

then I extract them to a directory under c:\ called c:\unzip\ and try to config gallery with c:\unzip\unz551xN.exe for unzip path and infozip path. Am I doing that right? seems nothin changes..... still cannot upload zip files by Form...... any expert to point out my mistake?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2004-07-08 06:18

Try renaming unz551xN.exe to unzip.exe

 
Desmond

Joined: 2004-07-06
Posts: 19
Posted: Thu, 2004-07-08 07:06

I renamed unz551xN.exe to unzip.exe and infozip.exe and put into 2 folders. (see the path below.) And there are 2 fields in the config, one for infozip and one for unzip, and I try the following:

If I only input the path of unzip (c:\unzip\unzip551\unzip.exe)

I got this error:

Processing status...
Skipping test.zip.zip (ZIP support not enabled)
Fatal error: Cannot break/continue 1 level in c:\program files\apache group\apache\htdocs\forum\modules\gallery\util.php on line 2414

If I also input for infozip (c:\unzip\infozip\infozip.exe)

I got another error:

Processing status...
No images uploaded!

 
Desmond

Joined: 2004-07-06
Posts: 19
Posted: Thu, 2004-07-08 08:39

somebody help please........... gallery remote won't work in embedded gallery with phpbb2 already....... if even upload zip file function is gone..... too painful to do mass upload

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2004-07-08 08:41

Desmond, try uploading with debug mode enabled ( FAQ Gallery:c.31 ) it might give us some more clues.

 
Desmond

Joined: 2004-07-06
Posts: 19
Posted: Thu, 2004-07-08 09:03

I have test it with debug mod enabled. I fillup the path for both infozip and unzip (the two folder have exactly the same files and directory, only difference is the name of the exe) and got the following:

I enter the path into the here:

2. Use the Browse button to find the photos on your computer

File c:\xxxyyy\test.zip

Processing status...

Executing:

C:\unzip\infozip\infozip.exe -1 C:\WINDOWS\TEMP\php1896.tmp

Results:
none

Error messages::

Status: 10 (expected 0)No email sent as no valid email addresses were found No images uploaded!

If I upload as a meta data file,

Processing status...
No email sent as no valid email addresses were found No images uploaded!

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2004-07-08 09:08

Does normal image uploads work?

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-07-08 09:09

You need to open a command prompt and see if infozip is working at all... if it doesn't work from a command prompt, then it's not going to work from PHP.

 
Desmond

Joined: 2004-07-06
Posts: 19
Posted: Thu, 2004-07-08 09:17

I type this in cmd
c:\unzip\infozip\infozip.exe
and it ask me to replace readme........... is that means functioning?

 
Desmond

Joined: 2004-07-06
Posts: 19
Posted: Thu, 2004-07-08 09:17

normal image works perfectly.......

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-07-08 09:19

If it's asking you to replace files, it means that you're trying to run the self-extractor. You're not running infozip... you're running the infozip archive.

 
Desmond

Joined: 2004-07-06
Posts: 19
Posted: Thu, 2004-07-08 09:27

I extract the unz551xN.exe in both folder already...... still got the same error.....

 
Desmond

Joined: 2004-07-06
Posts: 19
Posted: Thu, 2004-07-08 09:33

I try to do this
in cmd, I type:
infozip -l c:\unzip\TEMP\1.zip and it shows (length date time name) of 001.jpg

I actually upload a .zip but the command that the FORM excute is on a .tmp file.... is it normal?

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-07-08 09:36

The command Gallery uses is actually -1 (one, not ell).

You're executing the wrong file, basically. You need to extract the archive and then locate the correct binary. Renaming the archive (which is what someone suggested, above) is incorrect.

 
Desmond

Joined: 2004-07-06
Posts: 19
Posted: Thu, 2004-07-08 09:39

if I type infozip 1.zip -d c:\unzip\TEMP, it extract the 001.jpg successfully.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-07-08 09:42

Then re-extracting pulled out the correct filename. Gallery should work fine. Try another upload?

 
Desmond

Joined: 2004-07-06
Posts: 19
Posted: Thu, 2004-07-08 09:45

is unz551xN.exe the wrong for me?

I type -1 (negative one) and the infozip don't list anything.
I type -l (negative L) infozip show the (length date time name)

 
Desmond

Joined: 2004-07-06
Posts: 19
Posted: Thu, 2004-07-08 09:46

should I restart apache?

 
Desmond

Joined: 2004-07-06
Posts: 19
Posted: Thu, 2004-07-08 09:54

still the same...error message as follow: I can see the php18DE.tmp file appear in the TEMP folder and then disappear when doing a upload........

Processing status...

Executing:

C:\unzip\infozip\infozip.exe -1 C:\unzip\TEMP\php18DE.tmp

Results:
none

Error messages::

Status: 10 (expected 0)No email sent as no valid email addresses were found No images uploaded!

 
Desmond

Joined: 2004-07-06
Posts: 19
Posted: Thu, 2004-07-08 10:29

anymore help?

 
Desmond

Joined: 2004-07-06
Posts: 19
Posted: Fri, 2004-07-09 03:17

who can point out my mistake please.......
should I get a older version of unzip/infozip?

 
etegration

Joined: 2003-10-06
Posts: 21
Posted: Mon, 2006-12-04 03:32

getting zipping or unzipping to work in Gallery 1 or 2 is a bitch. Anyone can help? it's really tedious.