Development Guides Home >> Guide to the LiveAPI System >> LiveAPI Methods
The exec() method executes a cPanel tag.
Important:
We strongly recommend that you use an API method (api1(), api2(), or uapi()) or wrapper method instead of this method.
// Execute the feature tag.
$cpanel->exec(feature,1);# Execute the feature tag.
$cpliveapi->exec(feature,1);| Parameter | Type | Description | Possible values | Example |
|---|---|---|---|---|
tag | string | The cPanel tag. | A valid cPanel tag. | feature |
skip_return | Boolean | Whether to return output. This parameter defaults to 0. |
| 1 |
- If the
skip_returnvalue is0, the function returns a hash reference of the cPanel tag's output. - If the
skip_returnvalue is1, the function does not return output.