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