Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
Python and Tcl - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for 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.

WHY CHOOSE PHP?

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


A PHP EXAMPLE

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:

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

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

<?php

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>");
 }

?>
<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!

WHERE IS PHP USED

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.

PHP COURSES

"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
  [4314] PHP training - refreshed modern course, backed up by years of practical experience - (2014-11-16)
  [3966] Our examples work with any recent version of PHP - (2013-01-01)
  [3952] PHP revision ... by example. - (2012-12-15)
  [3530] A typical weekend?? - (2011-11-28)
  [3025] Learning to Program ... in PHP. Course examples. - (2010-11-01)
  [2663] Improve your PHP on a weekend away - (2010-03-05)
  [2589] Your PHP code does not work? Here is where to start looking. - (2010-01-18)
  [2559] Moving the product forward - ours, and MySQL, Perl, PHP and Python too - (2010-01-01)
  [2504] Learning to program in ... - (2009-11-15)
  [2430] Not just a PHP program - a good web application - (2009-09-29)
  [2400] Are you wanting to learn PHP? - (2009-09-08)
  [2227] Learning PHP, Ruby, Lua and Python - upcoming courses - (2009-06-11)
  [2222] A (biased?) comparison of PHP courses in the UK - (2009-06-07)
  [2097] PHP Course - for hobby / club / charity users. - (2009-03-22)
  [1722] PHP examples - source code and try it out too - (2008-07-26)
  [235] Preparation for a day's work - (2005-03-04)
  [116] The next generation of programmer - (2004-11-13)

Introduction to PHP
  [4621] The power of scripting - (2016-01-12)
  [4118] We not only teach PHP and Python - we teach good PHP and Python Practice! - (2013-06-18)
  [3025] Learning to Program ... in PHP. Course examples. - (2010-11-01)
  [2097] PHP Course - for hobby / club / charity users. - (2009-03-22)
  [1958] PHP - Parse error: syntax error, unexpected $end ... - (2008-12-23)
  [1753] Perl v PHP, choosing the right language - (2008-08-14)
  [1717] Q - Should I use Perl or Python? - (2008-07-23)
  [1198] From Web to Web 2 - (2007-05-21)
  [1050] The HTML++ Metalanguage - (2007-01-22)
  [949] Sludge off the mountain, and Python and PHP - (2006-11-27)
  [924] The LAMP Cookbook - Linux, Apache, MySQL, PHP / Perl - (2006-11-13)
  [917] Syntax checking in PHP - (2006-11-07)
  [846] Is Perl being replaced by PHP and Python? - (2006-08-27)
  [795] Remember a site's non-technical issues too - (2006-07-07)
  [789] Hot answers in PHP - (2006-07-02)
  [712] Why reinvent the wheel - (2006-05-06)
  [691] Testing you Perl / PHP / MySQL / Tcl knowledge - (2006-04-19)
  [646] PHP - London course, Melksham Course, Evening course - (2006-03-14)
  [629] Choosing the right language - (2006-03-01)
  [624] It's REALLY easy to add a little PHP - (2006-02-26)
  [577] Learning to program in Perl or PHP - (2006-01-26)
  [433] FTP - how to make the right transfers - (2005-09-01)
  [382] Central London Courses - Perl, PHP, Python, Tcl, MySQL - (2005-07-18)
  [380] Bridging to the customer requirement - (2005-07-16)
  [341] Happy Birthday, PHP - (2005-06-09)
  [317] Programming languages - a comparison - (2005-05-20)
  [135] Too many Perls - (2004-11-30)
  [132] Portrait of the author - (2004-11-27)
  [124] PHP v Java - (2004-11-20)
  [93] Case Sensitive? - (2004-10-19)
  [55] Evening classes to learn PHP - (2004-09-19)
  [48] PHP - onwards and upwards - (2004-09-14)

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., 2019: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01225 708225 • FAX: 01225 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