Copy a file from the local filesystem to the remote server using the SCP protocol. ... throw new Exception("Could not send data from file: $srcFile.");
php.net