Description

This function retrieves the server's FTP daemon.

Examples


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$ftp_daemon = $cpanel->api1('Ftp','ftpservername'); // Call the function.

 

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $ftp_daemon = $cpliveapi->api1('Ftp','ftpservername'); # Call the function.

 

<cpanel Module="Ftp::ftpservername()">
cpapi1 --user=username Ftp ftpservername

For more information and additional output options, read our Guide to cPanel API 1 documentation or run the cpapi1 --help command.  

proftpd

 

Parameters

This function does not accept parameters.

Returns

This function returns one of the following values:

  • proftpd
  • pure-ftpd
  • none