Learning PHP for Programmers
A 5 day programming course aimed at existing programmers who wish to learn PHP.Duration
5 days
Description
If you are already an experienced/competent programmer in another language, but would like to learn PHP, this 5 day course is for you.
If this is run as a scheduled course, the content is fixed. However, a custom course can take account of your experience, putting more or less emphasis or areas you may or may not already be experienced in - for example, spending more time on Object Orientation or Web form processing than database usage.
Pre-Requisites
Ability to program in any language (understanding of fundamentals like strings, arrays, algorithm design, loops, files, processes)
Content Overview
- Basic PHP syntax (file structure, variable notation, creating "Hello World")
- How to create simple web pages
- Numbers - type casting and handling
- Operators, order of precendence and usage
- Strings - processing, display, formatting, tokenising, regular expressions
- Arrays - single, multi dimensional and hashes; treating an array as a stack/queue
- Web server architecture - the bigger picture, and how everything slots together
- Producing dynamic pages and forms (handling form submission, data validation checks and so on)
- Email sending - using mail() and third party libraries
- Data sanitisation and security (cross site scripting, sql injection, cross site request forgery and more)
- Design tips and software patterns to help you produce good, maintainable web applications
- Accessing and using a database from PHP using either the native PHP functions or higher level libraries (PDO, PEAR::MDB2) for PostgreSQL, MySQL or SQLite.
- Introductions to Smarty (covering separation of concerns and templating), Propel (object relational mapping) and the Zend Framework (MVC stack)
- Introduction to the Standard PHP Library (SPL) (Standard interfaces, examples of use - for example, making an object masquerade as an array)
- Interacting with web services (XmlRpc, SOAP) and creation of RSS feeds (Using the Zend Framework) and parsing/creation of XML documents
- Performance tips - primarily caching and code profiling/optimisation with xdebug
What you will learn
- How to build a modern PHP based web application with an appropriate focus on long term maintainabilty, while still exploiting PHP's rapid development and ease of deployment - achieving fast results in a robust manner
- How to interact with relational databases with PHP
- Hands-on look into an Object Relational Mapping layer (Propel) and Templating layer (Smarty) to illustrate the benefits of seperation of concerns
- Production and consumption of XML and XML based web services (XMLRPC) using the core PHP API and Zend Framework as necessary
- Simple form handling (i.e Create/Retrieve/Update/Delete behaviour)
- An introduction to the Zend Framework - RSS And XMLRPC components
- Database access and manipulation via PDO and Propel
- Templating - seperating out logic from presentation, enhancing maintainability
Hands on Exercises
Please contact us for more information or use our information request form.