Search  |  Contact  |  Site Map  |  Print
FastVirtual Web Hosting & Internet Services Customer Care  
Web Hosting  |  Domain Names  |  Web Site Builder  |  Internet Access  |  Support Center  |  About FastVirtual

Using PHP

An introduction to PHP, a server-side,
HTML-embedded scripting language.

PHP support is included with Silver, Gold, Platinum and Platinum Plus web hosting plans.

PHP is a powerful server-side scripting language, which is concise and fast. PHP enables developers to create dynamic web content using less code than would be required with other scripting languages.

This overview provides a brief introduction to PHP. For more detailed information, please see the PHP Online Manual.

FastVirtual does not provide technical support for PHP development or configuration issues. If you require PHP technical support, please visit the the PHP web site, which includes extensive documentation and support options.

Version Information

  • PHP is version 5.2.4-2ubuntu5.23 with Suhosin-Patch 0.9.6.2 (cgi-fcgi) (build: Feb 11 2012 01:46:45)
  • GIF creation through PHP is supported.

PHP File Requirements

In order for the server to execute your PHP scripts, your files should end in a "php" or "php5" extension. PHP scripts will not be recognized if they use other extensions.

PHP files should be located in your normal web directories. They should not be placed in your "cgi-bin" directory.

Parsing PHP in Other File Types

The server is configured to execute PHP for files that end in .php5. Advanced users may add additional file extensions via the .htaccess file as follows:

AddType application/x-httpd-php .html

PHP Example

The following example demonstrates the use of PHP:

<HTML>
<HEAD>
<TITLE>PHP Example Script</TITLE>
</HEAD>
<BODY>
<B>Working out a math problem...</B><BR><BR>
<?php
     $a = 5;
     $b = 9;
     echo "$a plus $b is equal to ", $a + $b;
?>
<BR><BR><B>Counting to 10...</B><BR>
<?php
     $n = 1;
     while ($n <= 10)
     {
          echo "$n <BR>";
          $n++;
     }
?>
</BODY>
</HTML>

Find Out More

This overview only provides a brief introduction to PHP. For detailed information about PHP's capabilities, including MySQL programming within PHP, please see the PHP Online Manual.

Web Hosting  |  Domain Names  |  Web Site Builder  |  Internet Access  |  Support Center  |  About FastVirtual  |  Articles  |  Search  |  Contact  |  Site Map
Top of Page FastVirtual, Inc. All Rights Reserved.  Privacy Policy  |  Web Site Usage Terms  |  General Service Agreement