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

Versions Compared

Key

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

 

Description

Excerpt

This function changes whether the anonymous FTP upload directory is writable.

 This controls whether the system allows anonymous FTP uploads.

Include Page
LIB:_cPanelAPI1NoEquivalent
LIB:_cPanelAPI1NoEquivalent

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_anonftpin = $cpanel->api1('Ftp', 'set_anonftpin', 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_anonftpin = $cpliveapi->api1('Ftp', 'set_anonftpin', ['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_anonftpin( $FORM('set'))">
Expand
titleCommand Line
Code Block
languagebash
cpapi1 --user=username Ftp set_anonftpin 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 uploads.

  • 1 — Enable anonymous FTP uploads.
  • 0 — Disable anonymous FTP uploads.
0

Returns

This function does not return output.