Jump to content

Zziplib For Php


Recommended Posts

I'd like to accept and read zip file uploads at my site. Preferably, it would be great to be able to use the functions in the ZZipLib php library, described at http://us4.php.net/manual/en/ref.zip.php

 

However, I tested it out, and they're definitely not installed with php here at TCH. Any chance of getting this set up, or does anyone know of a way that I can configure the compile-time directives for php running on my site? (I'd be really surprised if you give your customers access to compile-time directives, as some of them can be highly unsafe, but maybe there's some other workaround?)

 

Alternatively, M-Zip could provide the same sort of functionality. However, then I'd need to know what command-line function could be used in order to unpack zip files. More info available at http://esurfers.com/m-zip/

 

The other option is really not an option at all, and that's to study the PKWare Zip whitepapers at http://www.pkware.com/products/enterprise/...rs/appnote.html and then read it as a raw binary file and do all the interpretation in the script file itself. (Talk about re-inventing the wheel!)

 

Thanks for any help you guys can provide :dance:

Link to comment
Share on other sites

  • 2 years later...

ok.. the next problem. when I FTP the backup generated through an FTP program, ie. FileZilla, I can open the backup fine, but when I do it through DOS commands it doesn't work.

Here are the commands.

 

ftp -i -n -v -s:z <-- z is a file that contains the lines below.

 

open *IPAddress*

user *username* *password*

cd *location to get files from*

mget * <-- which gets all the files including the backups which works correctly.

disconnect

bye

 

 

It seems to work fine, it grabs all the files, but the zip files are corrupt somehow???

Edited by jgingras
Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...