Description
This function sets the values of any basic PHP directive. The Basic Mode section of cPanel's MultiPHP INI Editor interface (Home >> Software >> MultiPHP INI Editor) lists these directives.
Note:
This document only applies to systems that run EasyApache 4.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
type |
string |
Required The type of php.ini file. Important: If you set this parameter to vhost, you must also include the vhost parameter. |
|
vhost |
directive |
string |
Required The name of a PHP directive and its value. Note: To change the directive's value for multiple PHP directives, increment the parameter name. For example, to change three directives, use the directive-1, directive-2 , and directive- 3 parameters.
|
Any valid directive and value. Note: You must format values as <directive>:<value>
|
allow_url_fopen:0 |
vhost |
string |
The name of a virtual host. Important: If the type value is vhost, you must use this parameter. |
A virtual host on the system.
|
clearly.com |
Returns
This function only returns metadata.