- Created by Documentation, last modified on Oct 05, 2018
disable_authentication_provider
disable_failing_authentication_providers
enable_authentication_provider
get_available_authentication_providers
get_provider_client_configurations
get_provider_configuration_fields
get_provider_display_configurations
get_users_authn_linked_accounts
set_provider_client_configurations
set_provider_display_configurations
twofactorauth_generate_tfa_config
twofactorauth_get_user_configs
cpgreylist_is_server_netblock_trusted
cpgreylist_list_entries_for_common_mail_provider
cpgreylist_load_common_mail_providers_config
cpgreylist_save_common_mail_providers_config
cpgreylist_trust_entries_for_common_mail_provider
cpgreylist_untrust_entries_for_common_mail_provider
create_cpgreylist_trusted_host
delete_cpgreylist_trusted_host
Description
This function returns the directives in the selected PHP version's php.ini
file. WHM's MultiPHP INI Editor interface (Home >> Software >> MultiPHP INI Editor) lists these directives in the Basic Mode section.
Note:
This document only applies to systems that run EasyApache 4.
Important:
WebServer
role, the system disables this function. For more information, read our How to Use Server Profiles documentation.Examples
https://hostname.example.com:2087/cpsess##########/json-api/php_ini_get_directives?api.version=1&version=ea-php70
https://hostname.example.com:2087/cpsess##########/xml-api/php_ini_get_directives?api.version=1&version=ea-php70
whmapi1 php_ini_get_directives version=ea-php70
Notes:
- You must URI-encode values.
- For more information and additional output options, read our Guide to WHM API 1 documentation or run the
whmapi1 --help
command. If you run CloudLinux™, you must use the full path of the
whmapi1
command:/usr/local/cpanel/bin/whmapi1
{ "data":{ "directives":[ { "info":"This option enables the URL-aware fopen wrappers that enable accessing URL object like files. Default wrappers are provided for the access of remote files using the ftp or http protocol, some extensions like zlib may register additional wrappers.", "default_value":"1", "value":"On", "type":"boolean", "key":"allow_url_fopen" }, { "info":"The maximum size of an uploaded file.", "default_value":"2M", "value":"2M", "type":"integer", "key":"upload_max_filesize" } ] }, "metadata":{ "version":1, "reason":"Ok", "result":1, "command":"php_ini_get_directives" } }
<result> <data> <directives> <info>This option enables the URL-aware fopen wrappers that enable accessing URL object like files. Default wrappers are provided for the access of remote files using the ftp or http protocol, some extensions like zlib may register additional wrappers.</info> <default_value>1</default_value> <value>On</value> <type>boolean</type> <key>allow_url_fopen</key> </directives> <directives> <info>This option allows the use of URL-aware fopen wrappers with the following functions: include(), include_once(), require(), require_once().</info> <default_value>0</default_value> <value>Off</value> <type>boolean</type> <key>allow_url_include</key> </directives> </data> <metadata> <version>1</version> <reason>Ok</reason> <result>1</result> <command>php_ini_get_directives</command> </metadata> </result>
Note:
Parameters
Parameter | Type | Description | Possible values | Example |
---|---|---|---|---|
version | string | Required The name of an installed version of PHP. |
| ea-php70 |
Returns
Return | Type | Description | Possible values | Example |
---|---|---|---|---|
| array of hashes | An array of directives that are available in the php.ini file of the selected version of PHP. | This array includes the | |
| string | The purpose of the directive. The function returns this value in the | Any string that describes a directive. | Click to view... This option enables the URL-aware fopen wrappers that enable accessing URL object like files. Default wrappers are provided for the access of remote files using the ftp or http protocol, some extensions like zlib may register additional wrappers. |
| string | The directive's default value. The function returns this value in the | Any valid default value. | 1 |
| string | The directive's current value. The function returns this value in the | Any valid current value. | On |
| string | The type of value that the directive uses. The function returns this value in the |
| boolean |
| string | The directive's name. The function returns this value in the | A valid PHP directive name. | allow_url_fopen |
| string | The directive's PHP_INI mode. The function returns this value in the Note: We introduced this return in cPanel & WHM version 68. |
| PHP_INI_SYSTEM = |
Function information
API Version:
Available in:
WHM 11.52+
Methods:
GET, POST
Required Parameters:
version
Return Formats:
About WHM API 1
WHM API 1 performs functions and accesses data in WHM.
Notes:
- Some functions and parameters may require that you authenticate as the
root
user. - You must use the appropriate WHM ports (
2086
or2087
) to call WHM API functions.
Find a function
Related functions
-
Page:WHM API 1 Sections - PHP — PHP functions allow you to manage your system's PHP configuration.
-
Page:WHM API 1 Functions - php_get_handlers — This function returns the PHP handlers on the system.
-
Page:WHM API 1 Functions - php_get_impacted_domains — This function lists domains that obtain their PHP version from a specified PHP configuration.
-
Page:WHM API 1 Functions - php_get_installed_versions — This function returns the installed PHP versions on a server.
-
Page:WHM API 1 Functions - php_get_system_default_version — This function returns the system default PHP version.