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? |
|
Posts: 13451
Try renaming unz551xN.exe to unzip.exe
Posts: 19
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!
Posts: 19
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
Posts: 13451
Desmond, try uploading with debug mode enabled ( FAQ Gallery:c.31 ) it might give us some more clues.
Posts: 19
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!
Posts: 13451
Does normal image uploads work?
Posts: 2322
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.
Posts: 19
I type this in cmd
c:\unzip\infozip\infozip.exe
and it ask me to replace readme........... is that means functioning?
Posts: 19
normal image works perfectly.......
Posts: 2322
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.
Posts: 19
I extract the unz551xN.exe in both folder already...... still got the same error.....
Posts: 19
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?
Posts: 2322
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.
Posts: 19
if I type infozip 1.zip -d c:\unzip\TEMP, it extract the 001.jpg successfully.
Posts: 2322
Then re-extracting pulled out the correct filename. Gallery should work fine. Try another upload?
Posts: 19
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)
Posts: 19
should I restart apache?
Posts: 19
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!
Posts: 19
anymore help?
Posts: 19
who can point out my mistake please.......
should I get a older version of unzip/infozip?
Posts: 21
getting zipping or unzipping to work in Gallery 1 or 2 is a bitch. Anyone can help? it's really tedious.