Web enthusiasts who need to develop dynamic web content through data driven pages, using PHP. Experienced users will also benefit from the many tips and tricks, and special exercises.
Experience of programming in any other type of language, i.e.HTML, Java, Javascript, C/C++, Visual Basic, etc
Course outline
- Session One
- Introduction to PHP and Open Source
- PHP tools and set up (install and configure WAMP, XAMPP)
- Creating a basic PHP script
- Server variables
- Variables and Expressions in PHP
-
- Identifiers (names for variables)
- Data types (integers, floats,strings)
- Creating variables
- Variable assignment and scope
- Constants
- Working with Strings
-
- Prebuilt string functions
- Regular Expressions
- Escaping strings
- echo vs print
- printf and sprintf
- Operators
-
- Arithmetic, Logical and Relational Operators
- Assignment Operators
- Conditional Tests and Events
-
- If and else statement
- The switch statement
- Flow Control
-
- The for loop
- The while loop
- The do… while loop
- break and continue statementss
- Storing & retrieving data with Arrays
-
- What are arrays?
- How and when to use arrays
- Indexed and Associative arrays
- Multi-dimensional arrays
- Loops with arrays
- Predefined arrays
- PHP Functions
-
- What are functions?
- Built-in functions
- Declaring functions
- Functions and arguments
- The return keyword
- Global and local scope
- Variable function calls
- Dates and Times
-
- The date() function
- The getdate() function
- The mktime() function
- Using timestamps
- Session 2
-
- Dates and Times (Session Management)
-
- What is a session?
- Understanding session variables
- Using Cookies with PHP
-
- Cookie properties
- Setting and retrieving cookies
- Expiring/Deleting cookies
- File and Directory Access
-
- Include and require
- Opening, reading and writing files
- Handling MySQL Databases with PHP
-
- Simple Database Connectivity
- Database design and manipulation by
- phpMyAdmin
-
- Integrating PHP+MySQL using web forms
- Use of $_GET super-global
- Use of $_POST super-global
- Validating forms using PHP
- Use of mail() function
- Objects in PHP
-
- Understanding Objects
- The Class Definition
- Class Inheritance
- Constructors and destructors
- __toString method
- Getter and Setter functions
- Accessing instance data and methods
- Workshop
-
- Creating a simple web application
-
Class time is 10:00 a.m.- 4:30/5:00 p.m. Breaks are scheduled throughout the day and lunch is typically scheduled between 1-2 pm. We provide you with Tea, Coffee, Biscuits and other refreshments on the house. We also have a fridge and a microwave available for you to store/warm up any food you wish to bring along for your lunch.
Course Duration |
2 Days |
Dates and Prices |
This course is only available as individual 1:1 on a bespoke
Please call centre on 0208 443 2888 for a quote and to arrange dates |
Course Times |
10:00 till 16:30 |
If you can't come to us we can come to you! This course is available as individual 1:1 tuition or small groups at your office as well as at our centre. Please click here for more information.