hello
i did this command in php "tar czvf back.tar.gz /web/htdocs/www-eticalis-org/home/"
it's work as perfect but this is for linux only?
because i found other server folder is "D:\Hosting\4882069\html" maybe not work on server host windows? there is other solution?
this is php for linux:
Quote:
<?
//Creating the file to compress:
exec("echo 'This is a test file to be compressed.' > testfile.txt");
echo 'Compressing...';
//Run the command and print out the result string
echo exec('tar czvf back.tar.gz /web/htdocs/www-eticalis-org/home/');
//Check out the compressed file:
echo '<a href="back.tar.gz" target="_blank">Get the file now</a>';
?>
|
version windows??? see :
Quote:
<?
//Creating the file to compress:
exec("echo 'This is a test file to be compressed.' > testfile.txt");
echo 'Compressing...';
//Run the command and print out the result string
echo exec('tar czvf back.tar.gz D:\Hosting\4882069\html\');
//Check out the compressed file:
echo '<a href="back.tar.gz" target="_blank">Get the file now</a>';
?>
|
|