I need to run 2 command after each other with exec
but it won't run.
Code
$command1 = 'cd '.$destination.''; //open destination folder (e.g. public_html)
$command2 = 'git clone '.$repos->repository.''; //make clone
$sshConnection1 = exec($command1); // run first command(open folder)
$sshConnection = exec($command2); //run second command (make clone)
Before I create this question I read some of suggested topics like this one. to add "&"
etc. but no luck.
Please tell me what should I do in order to run both commands successfully.