System command from PHP
To cut a long story short i want to be able to run this "cd /root/Desktop ; tar xvf /tmp/backup"command from my php interface.
shell_exec("cd /root/Desktop ; tar xvf /tmp/backup")
To create the file in /opt/lampp/htdocs, then try and run the file.
#start of file
cd /root/Desktop ; tar xvf /tmp/backup
'end of file
ive tried to include the line in /etc/init.d/backup
but the sytnax i use doesnt seem to work.
Does anyone know of a way i can do this?