The below function used to upload the local file to remote directory. [php] /** * Upload the file in ftp directory * @param string $localFilePath * @param string $remoteFilePath . * @return boolean */ public function CopyFileToFtpBucketDir($localFilePath, $remoteFilePath) { <strong><em>//Credential are configured in main.php</em></strong> $ftpSource = Yii::app()->params[‘ftpSource’]; $ftpUserName = Yii::app()->params[‘ftpUserName’]; $ftpPassword = Yii::app()->params[‘ftpPassword’]; <em><strong>// set …
Tag: FTP
Permanent link to this article: https://blog.openshell.in/2013/10/yii-upload-the-file-to-ftp-server/