Many Balloons Glow - Photo courtesy of the CTDP, Free for use

PHP

One Night Balloon - Photo courtesy of the CTDP, Free for use


PHP Resources

Manuals/Guides

  1. PHP Link Checker
  2. PHP Introduction Manual

Articles

  1. Reduce SPAM with a PHP Contacts Page

PHP Web Links



PHP Introduction

This section contains PHP documentation and PHP information.

PHP stands for Hypertext Preprocessor and is used as a scripting language that is embedded in HTML and runs on the web server. The PHP code is run on the server when the page is requested.

Anyone who knows HTML and the C or C++ language can easily program PHP. PHP uses much of the same syntax of C, but is much easier to use and provides access to variables and their values as submitted using HTML forms without the need to parse information. Also PHP is designed to work easily with most SQL servers including the open source SQL server, MySQL.

PHP code is placed in the body of HTML code. It may be placed in HTML code as follows:

<?php
echo "This is a test of PHP!";
?>

The above example will output the quoted text on the HTML page where the PHP code is embedded.

Many webservers support PHP out of the box although depending on the version, they may not support the latest version of PHP (Currently 4). If using PHP on the web, it is wise to run the latest version since it has some security enhancements. If you're just using PHP to learn on a local network using the latest PHP version is not as imperative. For example the Apache webserver that comes with Redhat Linux version 6.1 supports PHP3. Depending on how the webserver is setup, it may be required to name the HTML files that contain PHP code with an extension like ".php4".

CTDP