Sunday, 29 July 2012

What is PHP Programming ?

 PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

Simple Example :
*************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>Example</title>
    </head>
    <body>

        <?php
            echo "Hi, I'm a PHP script!";
        ?>

    </body>
</html>

Description:
*********
In the above program php scripts embedded in the body tags . the <?php is the open tag and ?> is the close tags .   the echo "Hi, I'm a PHP script !"; is the actual php script.

Output:
*****
Hi, I'm a PHP script ! 

No comments:

Post a Comment