Learn PHP, and its use as a Web-scripting language
This course covers the fundamentals of
programming in PHP (version 5) and web-related issues such as
linking a series of forms together into a session, maintaining
state , cookies, security and other matters. We also cover PHP's
interfacing to relational databases, with a particular study
It is particularly easy to write PHP code that
is hard to maintain, and this course includes a major "best
practise" section where we'll take you beyond the language itself
and show you how to write code that's secure, reliable, and easy
to enhance and maintain throughout its life cycle.
This course is intended for those with prior
programming experience, and a little basic knowledge of HTML
and web site structure is also useful.
Many PHP users are dropped in at the deep
end without knowledge of these topics and if you're in that
situation, we offer a slightly longer course (Learning to program in PHP
If you're already familiar with HTML, Web structure, programming
etc. (for example, if you're learning PHP to convert across from
something else), then you just need to book for this four day course.
Getting the most from your Well House Consultants course
PHP is a progamming language that was developed and designed
for use on the web, and it's now so popular that you'll find it
available on more domains than any other language. That's not because
it's free - it's because it's a very flexible and efficient tool.
PHP can be used for applications as easy as colour and font control
to handle accessibility issues, through to complex on line ordering
and stock and order tracking systems.
The PHP Language
|Introduction to PHP (module H101) What is PHP?.
What hardware and software do I need?.
Linux and Unix.
Windows (98, NT, 2000, Millennium, XP).
What does PHP cost?.
|A First PHP Web Page (module H102) Writing and uploading.
The structure of a PHP page.
Sequences of statements.
|Variables, Operators and Expressions (module H103) Expressions and operators.
Getting a value from a form.
Alternative ways of getting values from a form.
Comments in PHP.
Including a file.
|Control Statements (module H104) Conditional statements - if.
blocks, elseif and else.
Conditional statement - switch.
Loops - the while statement.
Making up a table in your PHP.
Alternative loop - the for statement.
Other control statement subjects.
|Functions (module H105) Global and static variables.
Loading functions from another file.
Call by value v call by name.
Object oriented PHP.
|Arrays (module H106) Array manipulation.
|String Handling in PHP (module H107) Strings.
Strings - in variables and literals.
String functions - an introduction.
Higher level functions.
Matching, extraction and replacement functions.
Formatting data into a string - sprintf.
Functions for formatting web pages.
Low-level string manipulation - strpos and friends.
Splitting up a string.
What flavour of regular expressions?.
|Input / Output (module H109) Input from a file.
Checking a file and looking around.
Example of output to a file.
PHP as a web tool
|HTML Web Page Data Handling (module H110) Inputs available from your page and environment.
Other form elements.
|Using MySQL Databases in PHP Pages (module H113) Database structure.
How to create a new table.
Adding information to a table.
Selecting information from a table and reporting it to a web page.
Deleting a table.
User input checking and other testing.
Example: A PHP script to select and view the data in any table.
Downloading all the tables from a database.
Uploading tables from a flat text file.
Using other relational databases from PHP.
Using Oracle 8.x and 9.x.
Using the Oracle OCI9 API.
Portable database connection.
|Additional PHP Material (module H999) Variable declaration and typing.
Sorting an associative array.
Other array re-ordering functions.
Flexibility with multi-dimensional arrays.
Using PHP to add a counter to an HTML page.
A graphic example.
Using PHP away from the Web Server.
How to use PHP away from the Web Server.
Example of PHP running from keyboard to screen.
What is XML?.
XML handling in PHP.
A Simple Parser.
Extending the example.
Analysing XML as a stand-alone program.
Other XML Subjects.
What is XSLT?.
Handling XSLT in PHP.
|Further Web Page and Network Handling (module H112) Maintaining state.
Headers, Heads and Bodies.
Uses of Cookies.
Accessibility - a practical example of cookies.
Example using PHP built-in session functions.
Why email from the server?.
Informing the system owner.
Emailing system users.
Emailing from the server.
Sending a simple email.
Adding to the headers.
A practical example of mailing from PHP.
|Shopping Cart Application in PHP (module H116) The store front page.
Under the hood.
Adding to the shopping cart.
The final phase.
Complete carter.php4 file.
Using a secure server for credit card details.
What is SSL and https?.
How can you use https?.
Programming implications for using a secure service.
Programming to use an electronic payment system.
Credit card agreements.
Making effective use of PHP
|Designing PHP-Based Solutions: Best Practice (module H115) Thinking through your design.
Tools to help you design.
Designing a smaller application example.
A note on using PHP in a Web environment.
Writing maintainable code.
Use of functions and include files.
And all the languages in one file?.
Writing code for different databases.
Error handling and software testing.
Expect the unexpected and check everything.
Error numbering and handling.
Data validation, sessions, XML/XSLT, SQL.
|MVC, 4 layer model and templating (module H302) How to design and structure your application.
Model - View - Controller.
Top level, business logic, web helpers and template.
Objects - how and when to use them.
Handling the look and feel with DreamWeaver.
A little on database design.
Shopping cart applications.
|Security in PHP (module H117) From first principles.
PHP installed as CGI binary.
Installed as an Apache module.
Using register globals.
|Generating CSS through PHP (module H118) Basic steps.
Configuring PHP to parse .css.
Mime Type text/css.
Dynamic input via GET, cookies and SERVER.
A worked example.
|PHP and MySQL example application - adhoc database analysis (module H204) Good practise in action.
4 layer model for application design.
Use of separate business logic, web help and templates.
Contextual Help system.
Building us a MySQL query in a PHP script.
Writing your own configuration file.
|Commercial and Legal Aspects (module A213) Why discuss this on a technical course?.
Data Protection Act, 1998.
Freedom of Information Act, 2000.
Privacy and credit card security.
Unsolicited commercial emailing and mailing lists.
Other content issues.
Who is the publisher?.
Registration agencies - the shady dealers.
Backups and security.
Ease of use.
Marketing and visibility.
TUTOR and COURSE AUTHOR
Graham Ellis - firstname.lastname@example.org
] [about Graham
, England. A taxi transfer can be arranged if you'll be arriving by air
from United States.
can be arranged on site in your country.
Public courses run at
Well House Manor
- our own
purpose fitted training centre and business hotel / conference centre in
• Download Melksham Map - [pdf file (750k)
] • Google Map - [Link
|| 2 students
|| 3 students
|| For 4 or more students
from the same company,
please consider a private course.
| With hotel room
($2988.00 inc VAT) or
(£1836.00 inc VAT)
($2460.00 inc VAT) or
(£1500.00 inc VAT)
| With hotel rooms
($5916.00 inc VAT) or
(£3612.00 inc VAT)
($4860.00 inc VAT) or
(£2940.00 inc VAT)
| With hotel rooms
($8844.00 inc VAT) or
(£5388.00 inc VAT)
($7260.00 inc VAT) or
(£4380.00 inc VAT)
• Multiple discount applies to bookings for second and subsequent delegates on the same running of a course, and on same order.
• Hotel rooms are available for arrival the night before the course starts, for departure after the end of the course on the last day.
If you're going to be writing a major project in PHP,
you may benefit from also attending our one day Object Oriented Programming in PHP
If you're going to be using PHP to make use of the MySQL
database, you might like to consider following up this course
Upon completion of your course, you'll have online access to the source code of
all the examples from the course, and you'll have access to the
"Ask the Tutor" forum
where you can raise questions. We also encourage you to email the tutor, and
to visit us again to use our library as appropriate.
Certification? - [Link
FOR FURTHER INFORMATION
Public (scheduled) courses
For more information about our public courses in general, such as class size, course times, materials provided, special requests, accommodation list, finding our centre, etc.
Terms and Conditions
Covering topics such as delegate substitution, payment, cancellation policy and other matters.