Description
This function returns the PHP version of every virtual host that a reseller controls.
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
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
|
array of hashes |
An array of hashes of the virtual host's suspended status, versions, virtual hosts, and accounts. |
An array of hashes that contains theis_suspended, version, vhost,documentroot, main_domain, homedir, and account returns. |
|
is_suspended |
Boolean |
The virtual host's suspension status. The function returns this value in the unnamed array. Note: We introduced this return in cPanel & WHM version 54. |
|
1 |
documentroot |
string |
The virtual host's document root. The function returns this value in the unnamed array. Note: We introduced this return in cPanel & WHM version 54. |
A valid document root path. |
/home/blee/public_html |
version |
string |
The virtual host's PHP version. The function returns this value in the unnamed array. |
|
ea-php55 |
vhost |
string |
The virtual host's name. The function returns this value in the unnamed array. |
A valid hostname. |
blee.com |
account |
string |
The account's name. The function returns this value in the unnamed array. |
A valid cPanel account on the server. |
blee |
main_domain |
Boolean |
Whether the virtual host is the primary domain. The function returns this value in the unnamed array. Note: We introduced this return in cPanel & WHM version 54. |
|
1 |
homedir |
string |
The virtual host's home directory. The function returns this parameter in the unnamed array. Note: We introduced this return in cPanel & WHM version 54. |
A valid home directory. |
/home/blee |