Introduction to HTML
Scripting & Programming
Languages and Environments

PHP
Copyright © 2000 - 2002 Randy D. Ralph.  All rights reserved.
  RETURN Course Contents  
In place June 3, 2000.

Overview:

Personal Home Page Tools (PHP) is an object-oriented server-side scripting language and environment for creating dynamic webpages.  PHP is open source, object-oriented and performs well across a number of platforms and operating systems.  PHP can produce web pages on-the-fly like Microsoft's ASP, but is not restricted to the Windows NT platform.  It is similar in look and feel to C++ and Perl and incorporates some of the best features of both.

PHP scripts are embedded within the HTML Document but are interpreted and executed at the server level to produce dynamic web documents or to insert content dynamically within the HTML Document, itself.  PHP permits user authentication, transmission of HTTP headers, communication with a number of popular database management systems, seamless integration with external libraries and objects, forms processing, and a wide variety of other web-based functions.

Example:

Code in file index.html -

<html>
  <head>
    <title>Hello World</title>
    <basefont face="arial" size=4>
  </head>
  <body bgcolor="#FFFFCC">
    <?php echo 
      "Hello World
      <P>
      <I>This is an example 
      of PHP.</I>"; ?>
  </body>
</html>
Resulting Display -

Hello World

This is an example of PHP.


Selected Print Resources:

Atkinson, Leon.  2000.  Core PHP programming: using PHP to  
    build dynamic Web sites, 2nd ed.  Upper Saddle River, 
    NJ: Prentice Hall.
    QA76.73.P22 A85 2000

Lerdorf, Rasmus.  2000.  PHP pocket reference.
    Sebastopol, CA: O'Reilly.
    QA76.73.P224 L47 2000

Selected Web Resources:

  RETURN Course Contents  
You are here:  NetStrider   »   Tutorials   »   HTML   »   Scripting   »   PHP   «