Hello everybody,
I'm trying to execute command on remote host. In my case firstly I should go to the proper directory /home/user/destination_directory and than make an archive of the files and upload it back on the server.
With ssh I can make an archive with ssh_exec($conn_id ,'tar ...'), but I dont know how to change directory first.
With ftp I can change directory with ftp_chdir() but the ftp_exec doesn't work how I want. It posts Unknown SITE command when I put ftp_exec($conn_id,'tar...); so ftp server doesnt recognize this command.
I also can't use ftp_raw() course it's from PHP 5
Can anybody help me pls?