Description
This function echoes the domain name or ** All Public Domains **
.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Mime::redirect_info
— This function retrieves redirect information for a URL or** All Public Domains **
.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
domain |
string |
Required The domain name. |
A valid domain name. |
example.com |
Returns
Parameter |
Type |
Description |
Possible values |
Example |
domain |
string |
The domain. |
The domain parameter. |
1 |
url |
string |
This parameter is deprecated. |
null |
null |
reason |
string |
A reason for failure. Note: This function only returns a reasonvalue if it failed. |
A string that describes the error. |
This is an error message. |
result |
boolean |
Whether the function succeeded. |
|
1 |