web design hamilton
web site hosting hamilton
ecommerce development hamilton
internet marketing hamilton
  web design hamilton   web site hosting hamilton   ecommerce development hamilton   web marketing hamilton   web design portfolio   About Virtual Image   contact Virtual Image   web design careers

web hosting hamilton


WEB SITE HOSTING

PHP3

PHP is a server-side, HTML-embedded scripting language. PHP is similar to Microsoft's ASP (Active Server Pages). It is a powerful development tool which allows for faster development of dynamic content with less programming. As with CGI, CAMEX VI does NOT provide development support for PHP. You can find extensive documentation on the PHP web site, and can learn more about PHP at http://www.php.net/

Conventions and CAMEX VI specific information

    • CAMEX VI uses PHP version 3.0.12.
    • The "CGI redirect" version of PHP is installed.
    • PHP files should end with the extension .php3
    • PHP files should be placed with your web documents; not in your /cgi-bin directory.
    • GIF creation via PHP is not supported or permitted.

Sample code

A simple PHP program (hello.php3):

    <?php echo "Hello World"; ?>



    A more advanced PHP script with HTML embedded code (math.php3):

    <HTML>
    <HEAD>
    <TITLE>PHP Test Script</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FFFFFF">

    <B>A simple math problem...</B><BR>
    <BR>

    <?php

       $a = 5;
       $b = 9;
       echo "$a plus $b is equal to ", $a + $b;

    ?>

    <BR>
    <BR>
    <B>PHP Counting to 10...</B><BR>

    <?php

       $n = 1;
       while ($n <= 10)
       {
         echo "$n <BR>";
         $n++;
       }

    ?>

    </BODY>
    </HTML>

PHP can also be used with a Mysql database to create advanced, dynamic web pages. To find out more, please consult the PHP site and Mysql documentation.