Cpanel::Mime::listhandlers

This article documents the usage of the Cpanel::Mime::listhandlers function in relation to the cPanel interface. This tag can be used inside cPanel pages.


SYNOPSIS

Cpanel::Mime::listhandlers


DESCRIPTION

This function lists user and system defined Apache Handlers.


VARIABLES

INPUT

system (string)
Whether or not to display system defined handlers. If system=no is present, they will not be displayed. (yes || no)

user (string)
Whether or not to display user defined handlers. If user=no is present, they will not be displayed. (yes || no)

OUTPUT

handler (string)
Handler name associated with the handler. Format x/x

ext (string)
File extension associated with the handler. Format: .extension


EXAMPLES

<?cp Mime::listhandlers(% % ,handler,ext) user=no ?>

This example will list the handler name and file extension for all user system Apache Handlers.

<?cp Mime::listhandlers(% %,handler,ext) system=no ?>

This example will list the handler name and file extension for all user defined Apache Handlers on a domain.


COPYRIGHT

Copyright 2007 cPanel Inc.