PHP scripts
PHP is a general-purpose scripting language available for websites hosted on either
Unix or Windows Server.
Script file extensions
Your PHP scripts must have one of the following file extensions in order to be
recognized by the web server.
PHP delimiters
Your PHP code is enclosed with delimiters that the web server recognizes. You can
use the standard delimiter, or the "short" delimiter.
<?php /* Standard delimiters */ ?>
<? /* "Short" delimiters */ ?>
Using PHP on Windows Server
Customers with websites hosted on Windows Server do not need to perform any steps
in order to run PHP scripts.
Using PHP on Unix
For websites hosted on Unix, the PHP CGI binary must be installed. This is done
using AMS Control Panel. Read
Available scripts for
complete steps. You can also upgrade your current PHP binary to the latest available
version using this method.
Customizing PHP
Customers hosting websites on Unix can customize the behaviour of PHP using a file
called
php.ini located in the
cgi-bin folder of their website.
Any setting in
php.ini can be modified on a per-website basis.
A list of the
php.ini directives is available at the
PHP website.
All changes to
php.ini take effect immediately.
The
Unix shell is a full-featured environment with compilers
and other tools. If you are an experienced Unix user, you are free to compile and use your
own custom version of the PHP CGI binary, instead of the one installed by AMS Control Panel.