Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
What is PHP?

PHP is an open source, server side, HTML-embedded language.

In other words, you can program in PHP within a web page, and when the web page is called up by a visitor to your web site, the web server will run the PHP and pass the result to the visitor. PHP is rapidly becoming one of the major workhorses of the web.


PHP is different to VBScript or Perl or Java or C ... it's a language which at the outset was written to provide server side executable content in web pages; those other languages have merely been adapted to provide the functionality for the job.

It's a modern, open source language with a very rich function set - it's excellent at everything from character string handling (with full support for both POSIX and Perl-style regular expressions) through file handling to graphics and interfacing to relational databases.

In PHP, you don't write a whole block of code to perform some action that your sure has been done before - you search for an appropriate function in the manuals, or
on line at www.php.net; if you're a programmer in some other language, you might drool at these:

 function action

 file read a whole file into an array
 array_walk perform a function on every element of an array
 session_start start a session (see "state" article)
 fgetcsv read a comma separated line and split it into an array
 imagecreatefromjpeg load a JPEG image from a file
 imagecopymerge merge one image into another
 mysql_connect Establish a connection to a MySQL database
 nl2br Convert new line characters to <br> tags
 strip_tags remove HTML tags from a string of text


Let's see an example - in this example, we'll search a file containing a dictionary of over 45000 words for all words that match a particular pattern. The pattern is entered into a box on a form, which points to the following HTML page (with PHP embedded) on the server:

<title>PHP Demonstration</title>
</head><body bgcolor=white>

<h1>Demonstration of PHP in use</h1>


print "You are looking for <b>$want</b><p>You matched:<br>";

$words = file("/usr/share/dict/words");
foreach ($words as $trythis) {
 if (eregi("$want",$trythis)) print ($trythis."<br>");

Well House Consultants, 2001-2007.

When run, you'll see a result like:

[file php.gif at this point].

Yes - a PHP page really can be that quick and easy!


The growth rate of PHP is phenomenal; according to the main PHP web site, it's now available on 7 million domains, which is up from just over 1 million at the beginning of last year. It can be run with both Apache and Microsoft servers, which between them now account for about 90% of the server market.

We use the image of a Shay locomotive to represent PHP. On old logging railroads, Shays were used as the motive power behind the trains which were used to push the trucks up the track from behind. What the Shays lacked in good looks they gained in practicality - they pushed the logging cars up gradients as steep as 1 in 9 (11%), climbing thousands of feet in a few miles, with every wheel driven via a gear chain that ran along one side of the locomotive.

Our pictures show Shay locomotives at work on the Cass Scenic Railroad in West Virginia; 6 times a week in summer, an excursion train is pushed from the town of Cass up 11 miles of track to the top of Bald Knob - the second highest mountain in the state at a height of 4842 feet. The Cass Scenic Railroad was 100 years old this year.


"Technology for PHP". 1 day. "PHP Programming". 3 day.
[Update - The PHP programming course has been extended to 4 days; as the language grew, so did the uses most people make of it and three days was no longer sufficient to cover what most people needed. For people who wish to go further and learn to use object orientation in PHP, we offer an extra day too.

Current links: "Technology for PHP". 1 day. http://www.wellho.net/course/phfull.html "PHP Programming". 4 days. http://www.wellho.net/course/pgfull.html "OO Programming in PHP". 1 day. http://www.wellho.net/course/pofull.html
If you've 3 or more members of staff who want to learn PHP at the same time, we'll run a special course for you at our place or yours - we bring all the equipment that's needed including servers - you just provide a room and the trainees.

See also PHP Course details

Please note that articles in this section of our web site were current and correct to the best of our ability when published, but by the nature of our business may go out of date quite quickly. The quoting of a price, contract term or any other information in this area of our website is NOT an offer to supply now on those terms - please check back via our main web site

Related Material

PHP - General
  [116] - ()
  [235] - ()
  [1722] - ()
  [2097] - ()
  [2222] - ()
  [2227] - ()
  [2400] - ()
  [2430] - ()
  [2504] - ()
  [2559] - ()
  [2589] - ()
  [2663] - ()
  [3025] - ()
  [3530] - ()
  [3952] - ()
  [3966] - ()
  [4314] - ()

Introduction to PHP
  [48] - ()
  [55] - ()
  [93] - ()
  [124] - ()
  [132] - ()
  [135] - ()
  [317] - ()
  [341] - ()
  [380] - ()
  [382] - ()
  [433] - ()
  [577] - ()
  [624] - ()
  [629] - ()
  [646] - ()
  [691] - ()
  [712] - ()
  [789] - ()
  [795] - ()
  [846] - ()
  [917] - ()
  [924] - ()
  [949] - ()
  [1050] - ()
  [1198] - ()
  [1717] - ()
  [1753] - ()
  [1958] - ()
  [2097] - ()
  [3025] - ()
  [4118] - ()
  [4621] - ()

resource index - PHP
Solutions centre home page

You'll find shorter technical items at The Horse's Mouth and delegate's questions answered at the Opentalk forum.

At Well House Consultants, we provide training courses on subjects such as Ruby, Lua, Perl, Python, Linux, C, C++, Tcl/Tk, Tomcat, PHP and MySQL. We're asked (and answer) many questions, and answers to those which are of general interest are published in this area of our site.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2022: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/solutions/php-what-is-php.html • PAGE BUILT: Wed Mar 28 07:47:11 2012 • BUILD SYSTEM: wizard