SetServer

Navigation:  Development > Function Reference > Module > Ftp >

SetServer

Previous pageReturn to chapter overviewNext page

User to change connection.

 

App::Module('Ftp')->setServer(Server Name);
 

 

Parameter

Type

Description

Server Name

Mandatory

Ftp Sever address

 

See bellow examples:

 

$Ftp = App::Module('Ftp');
$Ftp->Connect('ftp.example.com');
$Ftp->Login('username','********'); 

$Ftp->setServer('ftp.example2.com');
$Ftp->Login('username2','********');