Description
This function lists the php.ini
file paths for the user's home directory and virtual host document roots.
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 |
paths |
array of hashes |
An array of hashes of php.ini file information. |
An array of hashes that contains thedocumentroot, version, account, path,main_domain, homedir, vhost, and typereturns. |
|
documentroot |
string |
The virtual host's document root. The function returns this value in the paths array. |
A valid document root path. |
/home/allthethings/public_html |
version |
string |
The default PHP version. The function returns this value in the paths array. |
|
ea-php55 |
account |
string |
The account's name. The function returns this value in the paths array. |
A valid cPanel account on the server. |
allthethings |
path |
string |
The name of the virtual host'sphp.ini file. The function returns this value in the paths array. |
A valid php.ini filename. |
php.ini |
main_domain |
Boolean |
Whether the virtual host is the account's primary domain. The function returns this value in the paths array. |
|
1 |
homedir |
string |
The home directory. The function returns this value in the paths array. |
A valid home directory path. |
/home/allthethings/ |
vhost |
string |
The name of the virtual host. The function returns this value in the paths array. |
A valid hostname. |
clearly.com |
type |
string |
The record's type. The function returns this value in the paths array. |
|
vhost |