Harvard Extension School
CSCI E-12 Fundamentals of Web Site Development | Spring 2020

## PHP: Hypertext Processor

- PHP: Hypertext Processor

From the PHP manual:

PHP, which stands 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. Its syntax draws upon C, Java, and Perl, and is easy to learn. The main goal of the language is to allow web developers to write dynamically generated web pages quickly, but you can do much more with PHP.

### PHP Example

hello.php

    <?php
      $greeting = "Hello, World!";
    ?>
    <html lang="en">
    <head><title>Hello</title></head>
    <body>
    <h1><?php echo($greeting) ?></h1>
    </body>
    </html>

Copyright © David Heitmeyer