Dear Jonesy,While I appreciate your participation, your example appears to be a command line instead of PHP code. Also, I don't see the required SFTP parameters.
Here are the specific parameters for SFTP in PHP, with examples for each, if they are of help:
$hostDomainName (example.com) $securePort (22) $user (fred) $password (userpass)--may not be needed $keyPath (C:/Users/david/sec/privKey.key) $passphrase (privkeypass) $remoteDir (public_html) David