- home - source code -



Introduction

PHP is a server-side, cross-platform, HTML embedded scripting language.

PHP uses PERL style variables (scalars, arrays, and hashes) but its syntax is more like C.

PHP binaries and source code can be downloaded from http://www.php.net. It is free for personal and commercial use.

PHP is simple enough for casual web pages and powerful enough for ecommerce sites.

A small sample program:


<?php

    $title = "PHP Sample Program";
    $list  = array( 
        "PHP is easy", 
	"PHP is fun!",
	"PHP is powerful",
	"PHP can connect to databases",
	"PHP can even connect to email servers"
	);

?>

<HTML>
    <HEAD>
        <TITLE>
	    <?php echo $title; ?>
	</TITLE>
    </HEAD>    
    <BODY>
        A list of PHP advantages:<BR><BR>
	<UL>
	<?php
            foreach( $list as $item ) {
                print "<LI>$item";
	    }
        ?>
	</UL>
    </BODY>
</HTML>


Click here to see the results of the sample program