PHP
PHP is a powerful scripting language ideal for the creation of dynamic, data driven web sites. PHP is available on all our Linux Servers. To use PHP scripts on our servers they must have the file extension .php . Your default pages should be called index.php
PHP Modules
The following PHP modules/features are available
- Zend Optimizer
- FTP
- GD
- Free Type
- Curl
- MySQL
- XML
- Zlib
- BCmaths
- Calendar
Creating a PHP script
First create an HTML web page in a text editor and type:
<head>
<title>A PHP Page</title>
</head>
<body>
Now for the PHP. PHP needs to be placed in between the special tags, <?php ...... ?>. Next we will start the PHP tag and create a variable to hold the text 'Hello World'.
//Put the string value Hello World into a variable
$Message = "Hello Word";
Note that the code lines always end with a semi colon (;). Now we can display the contents of the variable in the HTML using the PHP print function.
print $Message;
?>
Now we close the body tag and the HTML tag.
</html>
Now save the file, 'helloworld.php' save the file to a directory on your linux hosting account.
The complete source of the file:
<head>
<title>A PHP Page</title>
</head>
<body>
<?php
//Put the string value Hello World into a variable
$Message = "Hello Word";
//Output the content of the variable $Message to the page
print $Message;
?>
</body>
</html>
To display the page open your web browser and type 'http://mydomain/helloworld.php', replacing mydomain with the domain you have hosted.
Technical Support On PHP Scripts
Please note that we cannot provide technical support on third party PHP scripts, problems with a third party PHP script should be referred to the script vendor.










