Description
This function lists a virtual host's basic PHP directives. The Basic Mode section of cPanel's MultiPHP INI Editor interface (Home >> Software >>MultiPHP INI Editor) also 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 thevhost parameter. |
|
vhost |
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
Return |
Type |
Description |
Possible values |
Example |
directives |
array of hashes |
An array of the available directives in the php.ini file of the selected user's PHP version. |
This array includes theinfo, default_value, value, type, and key returns. |
|
info |
string |
The purpose of the directive. The function returns this value in the directives array. |
A valid string. |
|
default_value |
string |
The directive's default value. The function returns this value in the directives array. |
Any valid default value of the following types:
|
1 |
value |
string |
The directive's current value. The function returns this value in the directives array. |
Any valid current value. |
On |
type |
string |
The type of value that the directive uses. The function returns this value in the directives array. |
|
boolean |
key |
string |
The directive's name. The function returns this value in the directives array. |
A valid PHP directive name. |
allow_url_fopen |