Is it possible to use a form to upload a .zip, .tar or so archive and let php extract the archive and write the files to the correct "place"? This without using exec or so.
While these functions won't expand a zip you can read the entire file and possibly using other file functions write them zip file functions
Houdini wrote:While these functions won't expand a zip you can read the entire file and possibly using other file functions write them zip file functions
Hmm. Looks like that require additional installation on the server. Working on a script that should be possible to run everywhere without any special installation. Ok, say if I just keep to tar.gz then? Any easier?
Depending on your host, you may be able to use a "system" call to extract the whole zip or tgz files using unzip or tar
Check out the pear packages. http://pear.php.net/package/archive_tar/redirected
Here is a class that seems to be able to unzip files.
Also, here is another that seems to be able to both create and extract various types of compressed archives.