Actually i want to send zip file to the dropbox .But when i try to open my file using fopen then this issue comes. fopen(www.cloud01.wptemplate.net_09_10_2015_16_1444437876.zip): failed to open stream: No such file or directory in /home/cle1296/cloud01.wptemplate.net/wp-content/plugins/wp-cloud-safe/includes/UltimateBackup.php on line 830. My server is dreamhost.I execute the same code on another server and don't face any issue.It seems that dreamhost disabled the fopen function.So kindly give me an alternative way
function sendToDropbox() {
try {
$this->log('Sending file to DropBox');
$dbxClient = new dbx\Client($this->dropboxGeneratedAccessToken, "PHP-Example/1.0");
$f = fopen($this->backupFilename, "r+");
$dbxClient->uploadFile($this->dropboxUploadPath . $this->backupFilename, dbx\WriteMode::add(), $f);
} catch (Exception $e) {
$this->log('ERROR while uploading file to DropBox');
}
}