Self Help Documentation
tool/getphpini
Description
Lists the php.ini data for an existing domain from a given SPanel user account.
Parameters
Field | Type | Required | Description |
---|---|---|---|
token | string | Yes | Authorizing API token – check API Basics for more information. |
accountuser | string | Yes | The SPanel user account that is being managed or viewed. |
action | string | Yes | The category and function being executed. |
domain | string | No | The domain to get the php.ini data for. If omitted, the API call will return the first domain’s php.ini. |
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
$endpointUrl = 'https://123.123.123.123/spanel/api.php'; $postData = [ 'token' => 'provided_auth_token', 'accountuser' => 'spanelio', 'action' => 'tool/getphpini', 'domain' => 'spanel.io' ]; $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, $endpointUrl); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt( $ch, CURLOPT_POST, true); curl_setopt( $ch, CURLOPT_POSTFIELDS, http_build_query($postData)); curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false); $jsonOutput = curl_exec( $ch ); |
You can find more information about the Endpoint URL in our API Basics article.
Output
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
{ "result": "success", "data": { "basic": { "allow_url_fopen": { "type": "bool", "setting": 1 }, "display_errors": { "type": "string", "setting": "STDERR", "options": [ "STDERR", "STDOUT" ] }, "max_execution_time": { "type": "int", "setting": "0" }, "max_input_time": { "type": "int", "setting": "-1" }, "max_input_vars": { "type": "int", "setting": "1000" }, "memory_limit": { "type": "int", "setting": "512M" }, "post_max_size": { "type": "int", "setting": "2000M" }, "upload_max_filesize": { "type": "int", "setting": "200M" } }, "advanced": "allow_url_fopen = 1\ndisplay_errors = STDERR\nmax_execution_time = 0\nmax_input_time = -1\nmax_input_vars = 1000\nmemory_limit = 512M\npost_max_size = 2000M\nupload_max_filesize = 200M" } } |