Free Course Image Programming

Free online course Programming

Duration of the online course: 6 hours and 7 minutes

4.5

StarStarStarStarHalf star

(25)

Build real web apps with this free PHP course: master forms, validation, MySQL, and security basics—ideal for beginners and job-ready skills.

In this free course, learn about

  • PHP Foundations and Setup
  • Variables, Data Types, and Arrays
  • Control Flow, Functions, and Code Reuse
  • Project Setup and Secure Form Validation
  • MySQL Database Integration
  • Dynamic Pages and Database Operations
  • Superglobals, Sessions, and File Handling
  • Object-Oriented PHP Fundamentals

About the free online course

Turn an idea into a working website by learning how server-side code really operates. This free online course guides you through PHP for web development, helping you move from simple scripts to dynamic pages that respond to users, process data, and power real features you see in modern sites. If you want a practical path into backend development, PHP remains a widely used tool across content platforms, small businesses, and large applications—making it a valuable skill for both freelance and employed roles.

You will begin by setting up a local development environment and understanding how PHP runs on your machine, so you can build and test projects quickly. As you progress, you will learn to write clean code using variables, operators, string handling, arrays, loops, conditionals, and functions—core fundamentals that translate to any programming language. You will also practice writing reusable logic, organizing code sensibly, and understanding scope, including how global values behave.

From there, the course shifts into building interactive web experiences: handling form submissions, choosing between GET and POST, validating inputs, and displaying user-friendly error messages. You will learn habits that protect applications, including techniques to reduce the risk of cross-site scripting. You will also work with data persistence by connecting PHP to MySQL, running queries, and sorting results for clearer output. Along the way, you will see patterns used in everyday development, such as passing identifiers through query strings to show detail pages, working with superglobals, and using helpful language features like the null coalescing operator.

By the end, you will be more confident building structured PHP pages that read and write data, validate user input, and behave predictably in real scenarios. Whether your goal is to create a portfolio project, support a WordPress or CMS workflow, or take your first step into backend engineering, this course gives you a practical foundation you can apply immediately.

Course content

  • Video class: PHP Tutorial ( 07m
  • Exercise: What are some reasons why learning PHP is still worthwhile for developers?
  • Exercise: Why is PHP still a worthwhile language to learn for web developers?
  • Video class: PHP Tutorial ( 09m
  • Exercise: What software is suggested for setting up a local PHP development environment?
  • Video class: PHP Tutorial ( 07m
  • Exercise: What is the purpose of creating a folder inside 'htdocs' in PHP development?
  • Exercise: What is the correct way to embed PHP code inside PHP tags in Sublime editor?
  • Video class: PHP Tutorial ( 07m
  • Exercise: What is a valid rule for naming variables in PHP?
  • Video class: PHP Tutorial ( 11m
  • Exercise: What is string concatenation in PHP?
  • Exercise: What is string concatenation in PHP?
  • Video class: PHP Tutorial ( 09m
  • Exercise: What is the outcome of the expression 2 * (4 + 9) / 3 according to BIDMAS?
  • Video class: PHP Tutorial ( 16m
  • Exercise: What are the three types of arrays in PHP?
  • Exercise: What are the three types of arrays in PHP?
  • Video class: PHP Tutorial ( 10m
  • Exercise: What is a multi-dimensional array?
  • Video class: PHP Tutorial ( 19m
  • Exercise: What is a for loop in PHP?
  • Exercise: What is the purpose of loops in PHP?
  • Video class: PHP Tutorial ( 12m
  • Exercise: In PHP, how does a boolean value display when echoed to a browser?
  • Video class: PHP Tutorial ( 12m
  • Exercise: What is a conditional statement in programming?
  • Exercise: What is a conditional statement in programming?
  • Video class: PHP Tutorial ( 03m
  • Exercise: What do the 'break' and 'continue' keywords do in PHP loops?
  • Video class: PHP Tutorial ( 12m
  • Exercise: What are functions in PHP?
  • Exercise: What are functions in PHP?
  • Video class: PHP Tutorial ( 08m
  • Exercise: What is the main characteristic of a global variable?
  • Video class: PHP Tutorial ( 05m
  • Exercise: What is the difference between include and require in PHP?
  • Exercise: What is the difference between include and require in PHP?
  • Video class: PHP Tutorial ( 11m
  • Exercise: What CSS library is used in the Ninja Pizza project?
  • Video class: PHP Tutorial ( 16m
  • Exercise: What are the two methods of sending data to the server via a web form in PHP?
  • Exercise: What are the two methods of sending data to the server via a web form in PHP?
  • Video class: PHP Tutorial ( 04m
  • Exercise: How can you protect a website from cross-site scripting attacks?
  • Video class: PHP Tutorial ( 05m
  • Exercise: What is form validation in PHP?
  • Exercise: What is the purpose of form validation in PHP?
  • Video class: PHP Tutorial ( 13m
  • Exercise: What is used to validate an email in PHP according to the script?
  • Video class: PHP Tutorial ( 10m
  • Exercise: What does the author do to store the error messages and output them in the form?
  • Exercise: What is the purpose of creating an errors array in the PHP code?
  • Video class: PHP Tutorial ( 05m
  • Video class: PHP Tutorial ( 05m
  • Exercise: What is a relational database management system?
  • Exercise: What is MySQL and how do we communicate with it from PHP files?
  • Video class: PHP Tutorial ( 07m
  • Video class: PHP Tutorial ( 05m
  • Exercise: What is the method used to connect to the database in PHP?
  • Video class: PHP Tutorial ( 07m
  • Video class: PHP Tutorial ( 08m
  • Exercise: What keyword is used to order the data in a specific way in PHP and how can we order it by a specific column or property?
  • Exercise: What keyword is used to order the data in a specific way in MySQL and what is the name of the property that the author orders the data by in the given text?
  • Video class: PHP Tutorial ( 06m
  • Video class: PHP Tutorial ( 04m
  • Exercise: What is the alternative syntax that can be used to make it easier to keep track of curly braces when using nested loops and conditional statements in PHP?
  • Exercise: What is the alternative syntax that can be used instead of curly braces for loops and conditional statements in PHP?
  • Video class: PHP Tutorial ( 10m
  • Video class: PHP Tutorial ( 13m
  • Exercise: What is the purpose of using a query string in the URL when linking to the details page for a pizza in the tutorial?
  • Exercise: What is the purpose of the query string in the URL when clicking on the "more info" button for a pizza?
  • Video class: PHP Tutorial ( 09m
  • Video class: PHP Tutorial ( 03m
  • Exercise: What does the author want to do in the lesson?
  • Video class: PHP Tutorial ( 05m
  • Video class: PHP Tutorial ( 05m
  • Exercise: What are superglobals in PHP?
  • Exercise: What are superglobals in PHP?
  • Video class: PHP Tutorial ( 09m
  • Video class: PHP Tutorial ( 03m
  • Exercise: What is the purpose of using the null coalesce operator in PHP?
  • Exercise: What is the purpose of using the null coalesce operator in PHP?
  • Video class: PHP Tutorial ( 05m
  • Video class: PHP Tutorial ( 06m
  • Exercise: What is the function used to check if a file exists in PHP?
  • Exercise: What function can we use to read the contents of a file in PHP?
  • Video class: PHP Tutorial ( 08m
  • Video class: PHP Tutorial ( 11m
  • Video class: PHP Tutorial ( 08m

This free course includes:

Icon for learning via the audio course

6 hours and 7 minutes of online video course

Icon for the digital course completion certificate

Digital certificate of course completion (Free)

Icon for exercises to practice what you've learned

Exercises to train your knowledge

Icon for courses that are 100% free from start to finish

100% free, from content to certificate

What software do I need to set up a local PHP development environment?

You can use a local server package such as XAMPP, which includes PHP, Apache, and tools for running PHP projects from your computer.

What is the difference between include and require in PHP?

Both insert another file into a script, but require stops execution if the file is missing, while include only produces a warning.

How do I validate and secure PHP form input?

Validate required fields and formats, use filter_var for email validation, and escape output with htmlspecialchars to help prevent XSS attacks.

Ready to get started?Download the app and get started today.

Install the app now

to access the course
Icon representing technology and business courses

Over 5,000 free courses

Programming, English, Digital Marketing and much more! Learn whatever you want, for free.

Calendar icon with target representing study planning

Study plan with AI

Our app's Artificial Intelligence can create a study schedule for the course you choose.

Professional icon representing career and business

From zero to professional success

Improve your resume with our free Certificate and then use our Artificial Intelligence to find your dream job.

You can also use the QR Code or the links below.

QR Code - Download Cursa - Online Courses

Course comments: Programming

A

ANBU

programming

JA

Jose Amandio de Almeida

StarStarStarStarStar

Excellent

More free courses at Web Development

Free Ebook + Audiobooks! Learn by listening or reading!