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. How to Use PHP error_reporting For Easier Debugging

      How to Use PHP error_reporting For Easier Debugging

      Tutorial Beginner

      Today, we’ll see how you can use the error_reporting function in PHP for debugging purposes.

    2. Data Extraction at Scale With Zenscrape

      Data Extraction at Scale With Zenscrape

      Tutorial Beginner

      This tutorial will show you how to use Zenscrape to extract data at scale from any website you like, without worrying about getting blocked. All with an...

    3. How to List Files in a Directory in PHP

      How to List Files in a Directory in PHP

      Tutorial Beginner

      In this article, you'll learn how to get a list of all the files in a directory in PHP. I'll show you five different methods and explain the advantages of each.

    4. 8 Best PHP Help-Desk Scripts and 5 Free Options

      8 Best PHP Help-Desk Scripts and 5 Free Options

      Tutorial Beginner

      Are you looking for a reliable PHP help-desk script? Solving issues related to your products on time will lead to happy clients and customers. That in turn...

    5. 13 Best PHP Email Forms

      13 Best PHP Email Forms

      Tutorial Beginner

      PHP email forms have many uses. While some may need a basic contact form, others need forms to collect more data. In this post, I'll show you some of the...

    6. Using PHP urlencode and urldecode

      Using PHP urlencode and urldecode

      Tutorial Intermediate

      In this tutorial, you'll learn why you need to encode or decode your URLs and how to use the built-in PHP functions to do so.

    7. Create a PHP Login Form

      Create a PHP Login Form

      Tutorial Intermediate

      In this tutorial, you'll learn how to create your own PHP login and registration forms from scratch.

    8. 19 PHP Login and Registration Forms to Download

      19 PHP Login and Registration Forms to Download

      Tutorial Beginner

      By downloading a PHP login and registration script, you can add a registration form to your website that will be secure and look good.

    9. How to Append to a File With PHP

      How to Append to a File With PHP

      Tutorial Beginner

      PHP comes with a lot of functions to read and write data to a file. We can also use a few of them to append data to a file. In this tutorial, you'll learn...

    10. How to Check if a File Exists in PHP

      How to Check if a File Exists in PHP

      Tutorial Beginner

      In this tutorial, I will tell you about different functions that you can use to check the existence of a file in PHP.

    11. Understanding PHP Constructors

      Understanding PHP Constructors

      Tutorial Beginner

      In this article, we're going to discuss the basics of constructors in PHP. You'll learn the purpose of PHP constructors and how to use them.

    12. How to Compare Dates in PHP

      How to Compare Dates in PHP

      Tutorial Beginner

      This tutorial will teach you how to compare and calculate the difference between two dates in PHP.