SetType

Navigation:  Development > Function Reference > Module > Ftp >

SetType

Previous pageReturn to chapter overviewNext page

Set file transfer mode
 

App::Module('Ftp')->setType(Mode);
 

 

Parameter

Type

Description

Mode

Mandatory

Set file transfer mode. See bellow types
FTP_AUTOASCII, FTP_ASCII, FTP_BINARY

 

return true if success

 

See bellow examples:

 

$Ftp = App::Module('Ftp');
$Ftp->Login('username','********');
$rawList = $Ftp->setType(FTP_BINARY);