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?
Examples of PHP in use.
Whys use PHP rather than the alternatives?
When and where is PHP available?
Versions of PHP (3 v 4).
|A First PHP Web Page (module H102) How do I enter and edit a PHP script?
Adding PHP within an HTML page.
How do I run a PHP Script?
First Script - including the day of the week in a web page.
Sequences of statements.
Editing and debugging your PHP.
Commenting your PHP.
|Variables, Operators and Expressions (module H103) Variable naming, creation.
Strings, Integers and Floats.
Saving values in variables and retrieving them.
Arithmetic, logical, relational, bitwise and other operators.
Combining operators; expressions, precedence, etc.
Including a file.
|Control Statements (module H104) Booleans, True and False.
Conditionals - if, elseif, else, ?: snd switch.
Loops - while, do, and for.
Controls - break, continue, exit, die and return.
Making up a table in PHP.
|Functions (module H105) Declaring and calling a function.
Arguments and return values.
Variable scope, global and static.
Loading functions from another file.
Library functions - overview.
Call by name and call by value.
|Arrays (module H106) Creating arrays, storing and retrieving values.
Indexing by number or by string.
|String Handling in PHP (module H107) Review of the fundamentals.
Low-level string manipulation.
Tokenizing a string (explode).
|Input / Output (module H109) Opening access to files on the server.
Reading from and writing to files.
File and directory functions.
Include and require.
PHP as a web tool
|HTML Web Page Data Handling (module H110) Writing to the browser.
Reading from a form.
|Using MySQL Databases in PHP Pages (module H113) Database Structure.
Introduction to SQL and MySQL.
Principles of database programming from PHP.
Adding and changing information.
Retrieving information from a table and reporting it to a web page.
Using an alternative database - example Oracle (OCI) calls.
Other databases and interfaces such as ODBC, Oracle, postgreSQL and Sybase.
|Additional PHP Material (module H999) Variable declaration and typing.
Sorting an associative array.
Other array re-ordering functions.
Flexibility with multidimensional arrays.
Using 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.
|Further Web Page and Network Handling (module H112) Sessions, state and multiple concurrent users.
Using an HTTP connection and authentication.
Cookies. Session functions.
Sending emails from PHP.
|Shopping Cart Application in PHP (module H116) Putting in all together in a practical example.
Data file database of products. User Tracking.
Keeping HTML templates apart from the code.
Developing the page look using a tool such as Dreamweaver.
Secure Server. Verification of user details.
Accepting on line credit card details or online payment.
Making effective use of PHP
|Designing PHP-Based Solutions: Best Practice (module H115) Analysing the requirement and designing the Application.
The batchlet model and multi-task PHP scripts.
Writing maintainable code.
Error checking and data integrity in a multiuser environment.
Good use of functions and include files.
Keeping databases, directories and shopping carts tidy.
Portability issues (databases, operating systems, PHP releases and installation).
The four layer model - separating the look and feel from the business logic.
|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) Security from first principles.
PHP as a CGI library and as an Apache Module.
Issues with 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?
Privacy and credit card security.
Unsolicited commercial emailing and mailing lists.
Marketing and visibility.
TUTOR and COURSE AUTHOR
Graham Ellis - firstname.lastname@example.org
] [about Graham
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
(£1836.00 inc VAT)
(£1500.00 inc VAT)
| With hotel rooms
(£3612.00 inc VAT)
(£2940.00 inc VAT)
| With hotel rooms
(£5388.00 inc VAT)
(£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.