Learn PHP

If you want to be a web developer, you need to learn PHP. Read these free tutorials to master this powerful and popular scripting language.

Getting started with PHP

  • How to Build a Simple REST API in PHP

    How to Build a Simple REST API in PHP

    Sajal Soni
  • How to Use Sessions and Session Variables in PHP

    How to Use Sessions and Session Variables in PHP

    Sajal Soni
  • How to Upload a File in PHP (With an Example)

    How to Upload a File in PHP (With an Example)

    Sajal Soni
  • All PHP tutorials:

    1. Where Is php.ini, the PHP Configuration File?

      Where Is php.ini, the PHP Configuration File?

      Tutorial Beginner

      In this tutorial, we’re going to discuss the php.ini file—the main configuration file in PHP. From the beginner’s perspective, we’ll discuss what it’s meant...

    2. Create a PHP Contact Form With ContactMe

      Create a PHP Contact Form With ContactMe

      Tutorial Beginner

      Today, we’re going to review the ContactMe tool, which allows you to create contact forms on your PHP site. It’s a very easy-to-use tool and allows you to...

    3. Create Beautiful Forms With PHP Form Builder

      Create Beautiful Forms With PHP Form Builder

      Tutorial Beginner

      In this tutorial, you'll learn how to use PHP Form Builder, a feature-packed form builder library, to create and beautify forms. You'll also learn how to use...

    4. 8 Best Project Management Systems and CRMs on CodeCanyon

      8 Best Project Management Systems and CRMs on CodeCanyon

      Tutorial Beginner

      A project management system is the best solution to ensure synchronization of teams, projects, and tasks. And a CRM helps manage customer contacts and...

    5. Try These 3 Practical Projects to Learn WordPress Plugin Development

      Try These 3 Practical Projects to Learn WordPress Plugin Development

      Tutorial Beginner

      If you want to learn to code your own WordPress plugins, you should try our new course, 3 More Practical Projects to Learn WordPress Plugin Development.

    6. Create a PHP Email Script and Form

      Create a PHP Email Script and Form

      Tutorial Intermediate

      In this tutorial, you will learn how to send email in PHP after gathering data from different forms filled out by users.

    7. Comparing PHP Database Abstraction Layers and CRUD Plugins

      Comparing PHP Database Abstraction Layers and CRUD Plugins

      Tutorial Beginner

      In this article, we're going to look at different database abstraction layers for PHP. We'll also look at a couple of PHP CRUD database plugins that could...

    8. New Short Course on File Handling in PHP

      New Short Course on File Handling in PHP

      Tutorial Beginner

      If you want to learn the ins and outs of file handling for PHP, try our new course, Practice PHP and Learn: File Handling. In just under an hour of video...

    9. How to Create a WordPress Landing Page Template

      How to Create a WordPress Landing Page Template

      Tutorial Intermediate

      Learn how to create a WordPress landing page template. You'll create a theme template file for use on your site's landing pages and edit theme files to...

    10. Trigonometry, Random Numbers and More With Built-in PHP Math Functions

      Trigonometry, Random Numbers and More With Built-in PHP Math Functions

      Tutorial Beginner

      This tutorial will introduce you to the built-in math functions in PHP for doing trigonometry, exponentiation, and logarithm calculations. We'll also look at...

    11. How to Do User Authentication With the Symfony Security Component

      How to Do User Authentication With the Symfony Security Component

      Tutorial Intermediate

      In this article, you'll learn how to set up user authentication in PHP using the Symfony Security component. As well as authentication, I'll show you how to...

    12. Secure, Passwordless Authentication Using Auth0

      Secure, Passwordless Authentication Using Auth0

      Tutorial Intermediate

      In this article, you'll learn how to set up passwordless authentication using the Auth0 service. Auth0 allows you to outsource authentication features for...