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, Manic does NOT provide development support for PHP. You can find extensive documention on the PHP web site, and can learn more about PHP at www.php.net

Conventions and Manic-specific information
  • Manic Design 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.
  • A list of PHP variables can be obtained from the output of phpinfo().
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.

Main | Signup | Hosting | Design | Webmaster Resources | Contact Us!




Copyright © 1996-1998, Manic Design
support@manicdesign.com