PHP

PHP is a server-side, cross-platform, HTML-embedded scripting language used to create dynamic web pages. PHP can create web site functions such as discussion boards, email forms, chat scripts, counters, polls and voting, error handling, guestbooks and much more. One reason why PHP is so popular with web site designers is because it is open source software. PHP is especially suited for Web development and can be embedded into HTML. The best things in using PHP are that it is extremely simple for a newcomer, but offers many advanced features for a professional programmer.

What do you Need ?

  • A Web Server
  • PHP installed on this server, the later version the better
  • MySQL on this server as well , for database scripts like search engines
  • Text editor -- You will need a text editor such as MicrosoftR Notepad
  • FTP program -- You will use this software to upload your programs to your website.

The Most Basic PHP Page

  • <?php
    echo "Hello World" ;
    ?>

How it works

  • <?php - This is the opening PHP tag, instructs that the page be read as PHP and not as HTML.
  • echo - This statement displays text on the screen.
  • ?> - This is the closing PHP tag.

Common PHP Commands
Include - This is a way of embedding information from a single file into another file. This is particularly useful for multiple web pages which need to show the same piece of information. Once set up you then only need to change one file to change that information across all of your pages.

A PHP 'include' statement looks like this:

<?php include("pagename.php"); ?>


PHP Help Files   PHP Error Problem Help

 

(c) Copyright 2002 Internet Guide