Zip and Windows Servers (HOW TO)
|
atlantis
Joined: 2003-07-03
Posts: 12 |
Posted: Thu, 2003-07-03 21:27
|
|
Here is how to get ZipInfo to work with Windows servers: 1. Download Info-ZIP's UnZip from: 2. Create a folder named "Info-Zip" on your C:\ drive. 3. Move the unz542xN.exe file you downloaded to C:\Info-Zip. 4. Run unz542xN.exe from the C:\Info-Zip folder. This will extract 16 files. After successful extraction, you may delete the unz542xN.exe file you moved to the C:\Info-Zip folder. 5. Edit the "save_photos.php" file located in your main Gallery folder. 6. Change the string to read as follows (All you are doing is adding an UPPERCASE Z in front of the number 1): 7. Save the save_photos.php file. 8. Run the Gallery configuration script (i.e. /gallery/setup/index.php). Note, you may need to run configure.bat first. 9. Set the Zipinfo parameter to: 10. Set the Unzip parameter to: 11. Save your configuration. Note, you may want to run secure.bat now. 12. Test a zip upload! ---- Gallery version: 1.3.3 |
|

Posts: 12
I recently upgraded to Gallery 1.3.4 and had to make some new changes for the zip functions to work as follows:
1. Edit gallery_remote.php.
Change line 176
FROM: " -1 " .
TO: " -Z1 " .
2. Edit gallery_remote2.php
Change line 385
FROM: " -1 " .
TO: " -Z1 " .
3. Edit util.php.
Change line 1411
FROM: " -1 " .
TO: " -Z1 " .
I also found out that either Info-Zip or Gallery does not like filenames containing a space in the zip archive. If you get an error that says "caution: filename not matched: ... Error: Archive: C:/PHP/uploadtemp/php2E.tmp" then check your zip archive for files containing a space in their filenames.
Posts: 12
I recently upgraded to Gallery 1.4 pl1 and had to make some new changes for the zip functions to work as follows:
1. Edit gallery_remote.php.
Change line 178
FROM: " -1 " .
TO: " -Z1 " .
2. Edit gallery_remote2.php
Change line 416
FROM: " -1 " .
TO: " -Z1 " .
3. Edit util.php.
Change line 1542
FROM: " -1 " .
TO: " -Z1 " .
Posts: 6
I just installed Gallery 1.4.1 on a Windows 2003 server running IIS 6.0, and this did the trick to get zip file uploading to work!
Thanks atlantis!
Can someone please add this to the FAQ and documentation pages??
Posts: 12
Glad to help! Have fun with Gallery. It is a great application.
Posts: 13451
atlantis, could you add a note to the docs at http://gallery.sf.net/docs.php - in the apropriate section?
Posts: 4
After I set the paths for it in the config it tells me "Error: zipinfo: c:/info-zip/unzip.exe must be an executable file!" hmm that sure looks like an executable file to me...
and I couldn't find any line in save_photos.php so I'm guessing that took it out in the newer versions
Posts: 3473
ZipInfo needs to be called zipinfo.exe. Just copy unzip.exe and rename it.
Remember... it's also entirely optional so if it's still not working, you'll probably manage okay w/o.
-Beckett (
)
Posts: 4
yea still no luck with it... they both say they must be an executable... oh well