LinksTraffic - Links and traffic exchange system

Tar gz a file using the exec function

english directory french directory
Search: Advanced Search

Tar gz a file using the exec function

Copy and paste the following codes into your editor and run it (code comments are included).

If you want to see the live result (we believe this is the best way to learn what is the script about), try it here (new window).

Compress a file

Compress files in Php can be very useful and the exec command can simplify the procedure on linux.

download the file

- for more information about the exec command: Function.exec;
- You must have the rights to write files inside the corresponding directory;
- You must run this script on linux;
- You can also compress a full directory including paths.

Post a comment

Webmaster Corner

The ClickBnk Code
Another Killer Product From Michael Jones, simply follow the Blueprint For Easy Online Wealth Using Click Bank...

Mass Article Control #1
Create Thousands Of Articles From only 1 Article and Have them Submitted Automatically With A brand New Submitter!

iPowerWeb
Incredible Membership Packages - Web Hosting!

Maverick Money Makers - Get Paid For Life!

Categories

Copyright 2004-2010 @ LinksTraffic RHM Solution ::: Partners | Privacy | Contact us form