Child pages
  • cPanel API 1 Functions - Ftp::set_anonftp

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Description

Excerpt

This function enables or disables anonymous FTP logins.

Warning
titleWarning:

Include Page
LIB:_cPanelAPI1NewerFunctions
LIB:_cPanelAPI1NewerFunctions

Panel
bgColor#F2F2F2
borderStylenone

Examples


Panel
bgColor#FFFFFF
borderStylenone
Expand
titleLiveAPI PHP Class
Code Block
languagephp
linenumberstrue
$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$set_anonftp = $cpanel->api1('Ftp','set_anonftp',array('0') ); // Call the function.

Include Page
LIB:_LiveAPIPHPLink
LIB:_LiveAPIPHPLink

 

Expand
titleLiveAPI Perl Module
Code Block
languageperl
linenumberstrue
my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $set_anonftp = $cpliveapi->api1('Ftp','set_anonftp',['0']); # Call the function.

Include Page
LIB:_LiveAPIPerlLink
LIB:_LiveAPIPerlLink

 

Expand
titlecPanel Tag System (deprecated)

Include Page
LIB:_cPanelTagsWarning
LIB:_cPanelTagsWarning

Code Block
languagetext
<cpanel Module="Ftp::set_anonftp( $FORM('set'))">
Expand
titleCommand Line
Code Block
languagebash
cpapi1 --user=username Ftp set_anonftp 0
Note
titleNote:

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

Expand
titleOutput (none)
This function does not return output.

 

Parameters

ParameterTypeDescriptionPossible valuesExample
setBoolean

Required

Whether to enable anonymous FTP.

  • 1 — Enable.
  • 0 — Disable.
0

Returns

This function does not return output.