PhP Introduction

This is a short and somewhat incomplete tour through PHP. Further details on the language may be found in the documentation and other resources below.

PHP is a server-side embedded scripting language. PHP code is embedded in a file and interpreted by the webserver. This paragraph was produced with the following code:
<?PHP 
$S1 = "PHP is a server-side embedded scripting language. 
       PHP code is embedded in a file and interpreted by the 
       webserver. This paragraph was produced with the following code:";
echo $S1 ?>

In traditional CGI scripts the web server must spawn a separate process for each script. PHP scripts differ from conventional CGI scripts in that the web server executes the script itself.

The PHP processor has two modes: copy (HTML) and interpret (PHP) Interpretation is toggled with the <php tag.

Other Resources

For details see our local version of the PHP manual or visit http://www.php.net/. It is also worth exploring the PHP links page. Other tutorials may be found at:

PHP Support Sites

This is a short (and probably incomplete) list of the major sites that support PHP.

Page Source

Search |  Computer Science |  Feedback
Site Map


by Robert G. Rittenhouse rob@cs1.mcm.edu
Last modified: October 14 2004 12:15:44.