Description

This function lists the system's default PHP version.

Examples 




https://hostname.example.com:2083/cpsess##########/execute/LangPHP/php_get_system_default_version



$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// List system default PHP version.
$get_system_default = $cpanel->uapi(
    'LangPHP', 'php_get_system_default_version'
   );



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# List system default PHP version.
my $get_system_default = $cpliveapi->uapi(
    'LangPHP', 'php_get_system_default_version',
 );



<!-- List system default PHP version. -->
[% execute( 'LangPHP', 'php_get_system_default_version' ) %]



uapi --user=username LangPHP php_get_system_default_version



{
   "messages":null,
   "errors":null,
   "status":1,
   "metadata":{
   },
   "data":{
      "version":"ea-php55"
   }
}



Parameters

This function does not accept parameters.

Returns

Return
Type
Description
Possible values
Example

version

stringThe system default PHP version.
ea-php70