add FTP Upload
This commit is contained in:
parent
a05da31f8f
commit
a1a2eb84b3
@ -82,7 +82,7 @@ class Ftp
|
|||||||
$ftp_login = ftp_login($ftp,$this->getUser(), $this->getPassword());
|
$ftp_login = ftp_login($ftp,$this->getUser(), $this->getPassword());
|
||||||
ftp_pasv($ftp, true);
|
ftp_pasv($ftp, true);
|
||||||
|
|
||||||
$remoteFile = 'stock_'.date('YmdHis').'.csv';
|
$remoteFile = 'stock_hiltes.csv';
|
||||||
|
|
||||||
if($ftp_login){
|
if($ftp_login){
|
||||||
$r = ftp_put($ftp,$this->getRemoteDir().$remoteFile, $localFile);
|
$r = ftp_put($ftp,$this->getRemoteDir().$remoteFile, $localFile);
|
||||||
|
Loading…
Reference in New Issue
Block a user