I’m trying to run this command from a windows computer, but I can’t get it to work. The command works perfectly when I enter it into command prompt, but not when I execute the PHP script.
$command = '"C:\Program Files (x86)\WinSCP\winscp.exe" /console /command "open client" "cd /var/www/html/reports" "put C:\wamp\www\client\test.php" "exit"';
shell_exec($command);
Try using
exec()it can help you do debugging.