Hi,
i find some scripts to unpack tar.gz file on ftp server by not work. How to unpack tar.gz using php some example?

Recommended Answers

All 2 Replies

Member Avatar for rajarajan2017
<?php
exec('tar -xzf nameofthefile.tar.gz',$ret);
?>

Place this in a folder where you place your .tar.gz file and chmod 777 or 666 that folder. (Revert it to chmod 755 after you finish)

If you want to use a gui tool here it is http://ftp-unzip.com/ZipDeploy/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.