Description

This function counts the number of users that can access a directory.

Examples 




$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$count_users = $cpanel->api1('Htaccess','number_of_users', array('directoryname') ); // Call the function.



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $count_users = $cpliveapi->api1('Htaccess','number_of_users', ['directoryname'] ); # Call the function.


<cpanel Module="Htaccess::number_of_users( $FORM('dir'))">




cpapi1 --user=username Htaccess number_of_users directoryname



8




Parameters

ParameterTypeDescriptionPossible valuesExample

dir

string

Required

The directory name.

A valid directory name.directoryname

Returns

This function will display the number of users that can access the directory.