PHP

Overview
This course teaches PHP for building dynamic, database-driven websites and web applications. Depending on your background, the course runs 35 to 50 hours, covering everything from setting up a PHP and MySQL environment to writing secure, object-oriented PHP code.
You will work through core PHP syntax, form handling, database interaction, sessions and file handling, then move into object-oriented PHP, security best practices, and consuming external APIs, finishing with hands-on, real-world projects.
What You Will Learn
- Set up a PHP development environment with a web server like Apache and a database server like MySQL.
- Write PHP using variables, data types, operators, and control structures.
- Use functions and arrays for reusable, organized code.
- Handle form submissions, including retrieving and validating input.
- Connect to a database, execute SQL queries, and fetch and display data with PHP.
- Use sessions, cookies, and file handling to manage user data and files.
- Apply object-oriented PHP concepts including classes, objects, inheritance, and encapsulation.
- Apply security best practices to guard against SQL injection, cross-site scripting, and cross-site request forgery.
Course Curriculum
| Module | What you cover |
|---|---|
| Introduction to PHP | PHP’s role in web development and setting up a development environment with Apache and MySQL. |
| Basic Syntax and Variables | Variables, data types, operators, and control structures such as if statements, loops, and switch statements. |
| Functions and Arrays | Writing reusable functions and working with arrays to store and manipulate collections of data. |
| Working with Forms | Handling form submissions, retrieving form data, and validating input. |
| PHP and Databases | Connecting to a database, executing SQL queries, and fetching and displaying data. |
| Sessions, Cookies, and File Handling | Managing user authentication and data persistence with sessions and cookies, plus reading, writing, and uploading files. |
| Object-Oriented PHP | Classes, objects, inheritance, polymorphism, and encapsulation. |
| Security and Real-World Projects | Error handling, debugging, security best practices against SQL injection, XSS and CSRF, and building real-world, database-driven applications. |
Who This Course Is For
This course is for students with computer skills who have completed Introduction to Programming and have a working knowledge of HTML, CSS, JavaScript, and databases.
Target audiences
- Students with a working knowledge of HTML, CSS, JavaScript, and databases
- Developers who want to build dynamic, database-driven websites
Requirements
- Computer skills
- Introduction to Programming
- HTML, CSS, JS
- Database