Have PHP parse .html and other extensions
How to make .html or other extension parable by php -- hsphere:
1) Login to the control panel for the domain
2) Go to Domain Settings --> Web options --> domain (if multiple domains in the account)
3) Click the "Add extensions to PHP" button that is directly under "Built-in extensions" in the PHP section
4) In the file extension field, put the extension in -- .html or other -- make sure to include the leading period.
5) Set the mime-type popup menu to executable
6) Click submit
7) If on linux, check that "Server Configuration" on the web options
page has "OK" in it and if it has click to apply settings, then click
the link
8) Wait 10 minutes for the configuration to reload.
9) You're done.
Related Articles
PHP
Php Sort PHP processes by user: Show PHP Errors: put this code at top of php page you want to test (usually index.php): error_reporting(E_ALL); ini_set('display_errors', 1);
Sending Mail using HTML Form
You can use the mail-form script located attached to this KB article. To use, please do the following: 1) Unzip mail-form.zip 2) Download phpMailer class from http://phpmailer.worxware.com/ or ...
Enabling Inline HTML Viewing in Horde
To display HTML messages in-line, it may require a configuration adjustment to Horde, as noted by the Horde IMP "INSTALL" documentation. * By default, IMP is configured to NOT display text/html message parts inline. This is done for various security ...
How to get your own PHP error log via .htaccess
I would like to get my own PHP error log, how can I do this? =========================================== If you don't have a .htaccess file, create it it using the file manager or a regular text editor on your computer and upload that file using ftp. ...
Change php version in cpanel
Login to cpanel Search on the top left hand corner "php" Select "MultiPHP Manager" Under PHP-FPM make sure it's on. In the dropdown labeled php version you can select which version you want. Select the domain(s) you want to edit and click apply. ...