Forum Moderators: coopster

Message Too Old, No Replies

Unpack tar file in current dir with PHP?

And overwrite/create files/folders

         

dbzfyam

5:45 pm on Sep 21, 2007 (gmt 0)

10+ Year Member



Does anyone know or have a good PHP script to unpack tar files to the current directory (where the script is being run from) and, if needed, overwrite and (re)create files and (sub)folders? I've searched on this forum, on various PHP sites, Google etc., but the scripts I found either didn't work or gave strange permissions (441 instead of 755 for folders for example).

If you know a good script, please let me know.

Thanks in advance,
Stefan

jatar_k

1:06 pm on Sep 23, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



maybe try a shell script