Minor problem with following code:
<?php echo exec(‘cd /home/username/backup/files; tar -cvpzf `date +%y-%m-%d_%H-%M`.tar /home/username/public_html’); ?>
Error I am getting is:
Parse error: syntax error, unexpected ';' on line 1
Code above is line 1, would be nice to find a solution.
Thanks in advance for time and effort.
Your quotation marks around the command string are wrong.