
| Line: 1 to 1 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
| Changed: | |||||||||||
| < < | Using PHP in the cPanel Interface | ||||||||||
| > > | PHP In The cPanel Interface | ||||||||||
| Changed: | |||||||||||
| < < | For cPanel & WHM 11.30 and older versions of cPanel & WHM | ||||||||||
| > > | For cPanel & WHM 11.30 and older | ||||||||||
| Changed: | |||||||||||
| < < | As of cPanel & WHM 11.30, we have refactored this system so that it applies to an expanding list of scripting languages. You should review our LiveAPI documentation for the most recent information. | ||||||||||
| > > |
Overview | ||||||||||
cPanel allows for additional pages to be written in PHP rather than HTML. This provides full access to our APIs via our API tags.
UsageTo use cPanel PHP, place a PHP script anywhere inside of the following directory: | |||||||||||
| Changed: | |||||||||||
| < < |
| ||||||||||
| > > | /usr/local/cpanel/base/frontend/ | ||||||||||
| This directory corresponds to the following URL: | |||||||||||
| Added: | |||||||||||
| > > |
| ||||||||||
| Changed: | |||||||||||
| < < |
| ||||||||||
| > > | |||||||||||
| cPanel tags are still available by using <cpanel> and <?cp> tags. These tags can be executed before or after the PHP script. The order of execution is determined by the file extension used: | |||||||||||
| Changed: | |||||||||||
| < < |
| ||||||||||
| > > |
| ||||||||||
| Changed: | |||||||||||
| < < | |||||||||||
| > > | <?php | ||||||||||
| Changed: | |||||||||||
| < < | System Information | ||||||||||
| > > | cPanel PHP functionsThe following cPanel-specific PHP functions are available:
| ||||||||||
| Changed: | |||||||||||
| < < | This system is provided by a custom PHP binary located in 1 of the following 2 directories: | ||||||||||
| > > | <cpanel PHP="loadvars()"> | ||||||||||
| Changed: | |||||||||||
| < < |
| ||||||||||
| > > | Much of the same information provided by the cPanel PHP functions can be obtained through the DomainLookup API2 Module. | ||||||||||
| Changed: | |||||||||||
| < < | This PHP binary is not customizable in any way, form, or fashion. | ||||||||||
| > > | ExampleA demonstration PHP page is available in the following location:/usr/local/cpanel/base/frontend/x3/test.php
This page corresponds to the following URL:
System InformationThis system is provided by a custom PHP binary that is located in one of the following directories:
| ||||||||||
php.ini for cPanel PHP is available at: | |||||||||||
| Changed: | |||||||||||
| < < |
| ||||||||||
| > > | /usr/local/cpanel/3rdparty/etc or /var/cpanel/3rdparty/etc
| ||||||||||
| |||||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
Using PHP in the cPanel Interface | ||||||||
| Changed: | ||||||||
| < < | cPanel allows for additional pages to be written in PHP rather than straight HTML. This provides full access to our APIs via our API tags. | |||||||
| > > | For cPanel & WHM 11.30 and older versions of cPanel & WHM As of cPanel & WHM 11.30, we have refactored this system so that it applies to an expanding list of scripting languages. You should review our LiveAPI documentation for the most recent information. cPanel allows for additional pages to be written in PHP rather than HTML. This provides full access to our APIs via our API tags. | |||||||
Usage | ||||||||
| Line: 36 to 40 | ||||||||
php.ini for cPanel PHP is available at:
| ||||||||
| Added: | ||||||||
| > > | <--
| |||||||
| ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
Using PHP in the cPanel Interface | ||||||||
| Changed: | ||||||||
| < < | cPanel allows for additional pages to be written in PHP rather than straight HTML. This provides full access to our APIs via our API tags. | |||||||
| > > | cPanel allows for additional pages to be written in PHP rather than straight HTML. This provides full access to our APIs via our API tags. | |||||||
Usage | ||||||||
| Line: 16 to 16 | ||||||||
|
| ||||||||
| Changed: | ||||||||
| < < | cPanel tags are still available by using <cpanel> and <?cp> tags. These tags can be executed before or after the PHP script. The order of execution is determined by the file extension used: | |||||||
| > > | cPanel tags are still available by using <cpanel> and <?cp> tags. These tags can be executed before or after the PHP script. The order of execution is determined by the file extension used: | |||||||
| ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
Using PHP in the cPanel Interface | ||||||||
| Changed: | ||||||||
| < < | cPanel allows for additional pages to be written in PHP rather than straight HTML. This provides full access to our APIs via our API tags. | |||||||
| > > | cPanel allows for additional pages to be written in PHP rather than straight HTML. This provides full access to our APIs via our API tags. | |||||||
Usage | ||||||||
| Line: 16 to 16 | ||||||||
|
| ||||||||
| Changed: | ||||||||
| < < | cPanel tags are still available by using <cpanel> and <?cp> tags. These tags can be executed before or after the PHP script. The order of execution is determined by the file extension used: | |||||||
| > > | cPanel tags are still available by using <cpanel> and <?cp> tags. These tags can be executed before or after the PHP script. The order of execution is determined by the file extension used: | |||||||
| ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
Using PHP in the cPanel Interface | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
Using PHP in the cPanel Interface | ||||||||
| Changed: | ||||||||
| < < | cPanel allows for additional pages to be written in PHP rather than straight HTML. This provides full access to our APIs via our DeveloperResources/ApiBasics/WebHome][API tags]]. | |||||||
| > > | cPanel allows for additional pages to be written in PHP rather than straight HTML. This provides full access to our APIs via our API tags. | |||||||
Usage | ||||||||
| Line: 35 to 35 | ||||||||
php.ini for cPanel PHP is available at:
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
Using PHP in the cPanel Interface | ||||||||
| Line: 16 to 16 | ||||||||
|
| ||||||||
| Changed: | ||||||||
| < < | cPanel tags are still available by using | |||||||
| > > | cPanel tags are still available by using <cpanel> and <?cp> tags. These tags can be executed before or after the PHP script. The order of execution is determined by the file extension used: | |||||||
| ||||||||
| Changed: | ||||||||
| < < | Important: cPanel PHP files should never use the short opening tag for php, <?php should be used instead. | |||||||
| > > | ||||||||
System Information | ||||||||
| Changed: | ||||||||
| < < | This system is provided by a custom PHP binary located either at /usr/local/cpanel/3rdparty/bin/php or /var/cpanel/3rdparty/bin/php. This PHP binary is not customizable in any way form or fashion. The php.ini for cpanel php is available at /usr/local/cpanel/3rdparty/etc or /var/cpanel/3rdparty/etc | |||||||
| > > | This system is provided by a custom PHP binary located in 1 of the following 2 directories:
php.ini for cPanel PHP is available at:
| |||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
Using PHP in the cPanel Interface | ||||||||
| Line: 6 to 6 | ||||||||
Usage | ||||||||
| Changed: | ||||||||
| < < | To use cPanel PHP, place a PHP script anwhere inside of the following directory: | |||||||
| > > | To use cPanel PHP, place a PHP script anywhere inside of the following directory: | |||||||
| ||||||||
| Deleted: | ||||||||
| < < |
| |||||||
| Changed: | ||||||||
| < < | ||||||||
| > > | ||||||||
| Changed: | ||||||||
| < < | cPanel tags are still available by using | |||||||
| > > | cPanel tags are still available by using | |||||||
| Added: | ||||||||
| > > |
| |||||||
| ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Added: | ||||||||
| > > |
Using PHP in the cPanel InterfacecPanel allows for additional pages to be written in PHP rather than straight HTML. This provides full access to our APIs via our DeveloperResources/ApiBasics/WebHome][API tags]].UsageTo use cPanel PHP, place a PHP script anwhere inside of the following directory:
System InformationThis system is provided by a custom PHP binary located either at /usr/local/cpanel/3rdparty/bin/php or /var/cpanel/3rdparty/bin/php. This PHP binary is not customizable in any way form or fashion. The php.ini for cpanel php is available at /usr/local/cpanel/3rdparty/etc or /var/cpanel/3rdparty/etc | |||||||