Jump to content

[SOLVED] I want tar folder in my site .. how??


ghooost

Recommended Posts

thanks thorpe

 

I wrote this code .. it work good  :)

 

 

<?php 
if (!Function_exists(exec)) 
{
     echo "ERROR: exec NOT exists";
}
else
{	
$dir    = "/home/pl2004/public_html/FOLDER";
$backup = "/home/pl2004/public_html/NEWFILE.tar.gz";
$limit  = "30";
@set_time_limit($limit);
exec("tar cfz $backup $dir");
}
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.