PHP is an embedded-HTML, server-side, cross-platform scripting language that is extremely popular among Web developers. Files that end in .php will be parsed by the PHP interpreter and have their output sent to the user's Web browser.
LFC Hosting supports the latest PHP 5.6 to 7.1. To view what PHP version you have, visit the Domain section of the control panel. Use the drop-down menu to select the domain in question as needed. You will see the current version and can change or upgrade if needed.
There are many Web sites devoted to PHP that provide a wealth of information. One such site is the official PHP homepage, www.php.net, where you can find everything you ever wanted to know about PHP. Another great example of the PHP community is www.phpclasses.org, where you can find hundreds of free PHP programs that you can use within your site.
If you need a PHP module installed on our Web server, please file a support ticket stating where the module can be found and the reason why you would like to have it installed.
To connect to a database using PHP, you will need to use a DSN or DSN-less connection string. A DSN connection string requires you to set up a DSN in DSN Administration or SQL Administration (for SQL Server databases). Once there, click on the "View Sample Connection String" link for a number of sample connection strings. For information on connecting to MySQL databases using PHP, see MySQL.
For information on using Sendmail with PHP, please see Sendmail.
To view in greater details what is going on with your current version of PHP on your domain, you can create a simple file to view the details of PHP running on your domain. This allows you to see what we have enabled or disabled, or what values are set at.
With a simple text editor make a phpinfo.php file, and paste in <?php echo(phpinfo()); ?> in the file. When it's viewed on your domain in a browser, example http://www.yourdomain.com/phpinfo.php you will see how php is setup. If you need to change anything with in your php, make .user.ini as detailed below.
Since PHP 5.3.0, PHP includes support for configuration INI files on a per-directory basis. These files are processed only by the CGI/FastCGI SAPI. This functionality obsoletes the PECL htscanner extension.
In addition to the main php.ini file, PHP scans for INI files in each directory, starting with the directory of the requested PHP file, and working its way up to the current document root (as set in $_SERVER['DOCUMENT_ROOT']). In case the PHP file is outside the document root, only its directory is scanned.
Only INI settings with the modes
PHP_INI_USERwill be recognized in .user.ini-style INI files.
Two new INI directives, user_ini.filename and user_ini.cache_ttl control the use of user INI files.
user_ini.filename sets the name of the file PHP looks for in each directory; if set to an empty string, PHP doesn't scan at all. The default is .user.ini.
user_ini.cache_ttl controls how often user INI files are re-read. The default is 300 seconds (5 minutes).
To learn more visit http://php.net/manual/en/configuration.file.per-user.php
Was this answer helpful?
Aliased name servers allow our resellers to completely hide LFC Hosting from WHOIS lookups on...
You can password protect areas of your website through the Password Protection tool in your...
Secure Sockets Layer (SSL) is the standard for data encryption on the World Wide Web, allowing...
Wildcard subdomains let URLs like anything.yourdomain.com bring up the same Web site. Although...
If your account requires ColdFusion support, you can simply upload your ColdFusion files to your...