Description
This function opens a file in the HTML editor.
Warning:
cPanel API 1 is deprecated. We strongly recommend that you do not use cPanel API 1. However, no equivalent function exists in our newer APIs.
Examples
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
dir |
string |
Required The file's directory. |
Any valid directory name. |
public_html |
file |
string |
Required The file to open. |
Any valid filename. |
myfile.tar |
baseurl |
string |
Required The base URL for automated functions. |
Any valid base URL. |
http://www.example.com/home/user/ |
basedir |
string |
The HTML file's base directory. This value defaults to thehome/user/public_html directory. |
Any valid base directory. |
home/user/public_html |
charset |
string |
Required The character set in which to encode the HTML. |
Any valid character set. |
UTF-8 |
write_stdin |
Boolean |
Required Whether to replace the default HTML editor template strings with the values represented in the HTML editor's configuration hash. |
|
1 |
Returns
This function opens the HTML editor in a web browser.