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
    1. How to Create a WordPress Author’s Page Template

      How to Create a WordPress Author’s Page Template

      Tutorial Beginner

      If you run a multi-author website, you may want to consider adding an author template to your website. Author templates help present more information about...

    2. Add a Custom Column in WordPress Posts and Custom Post Types Admin Screen

      Add a Custom Column in WordPress Posts and Custom Post Types Admin Screen

      Tutorial Beginner

      In this tutorial we will see how to add a new column to the WordPress Posts management screen and in this column we will show the Featured Image of each...

    3. Using Faker to Generate Filler Data for Automated Testing

      Using Faker to Generate Filler Data for Automated Testing

      Tutorial Intermediate

      In-depth automated testing requires solid data generation. Come learn about Faker, a PHP library for straightforward data filling.

    4. Build a Newsletter System With PHP and MySQL

      Build a Newsletter System With PHP and MySQL

      Tutorial Advanced

      Today, we are going to be building a newsletter system using PHP with a MySQL database. The tutorial will cover building a system that allows for multiple...

    5. WordPress Error Handling With the WP_Error Class

      WordPress Error Handling With the WP_Error Class

      Tutorial Beginner

      In this post, we'll explore the WP_Error class in WordPress: the backbone of error handling.

    6. Managing Cron Jobs With PHP

      Managing Cron Jobs With PHP

      Tutorial Intermediate

      The cronab, or cron table, is a Linux system process/daemon that facilitates the scheduling of repetitive tasks, thereby easing up our day-to-day routine. In...

    7. How to Create an Object-Oriented Blog Using PHP

      How to Create an Object-Oriented Blog Using PHP

      Tutorial Intermediate

      In this post, we are going to extend our knowledge of PHP and MySQL a step further by creating a simple blog.

    8. How to Build a User Tour With Shepherd in JavaScript

      How to Build a User Tour With Shepherd in JavaScript

      Tutorial Intermediate

      New users can benefit from a visual tour of your web application. Learn how to build one with a JavaScript library called Shepherd.

    9. Understanding Hash Functions and Keeping Passwords Safe

      Understanding Hash Functions and Keeping Passwords Safe

      Tutorial Intermediate

      From time to time, servers and databases are stolen or compromised. With this in mind, it is important to ensure that some crucial user data, such as...

    10. PHP for Beginners: Free 7-Hour Course

      PHP for Beginners: Free 7-Hour Course

      Course Beginner

      The go-to free course for beginners to learn the fundamentals of PHP programming. Everything from if statements to MySQL in one course.

    11. 10 Wonderfully Creative Uses for PHP

      10 Wonderfully Creative Uses for PHP

      Tutorial Intermediate

      If you are familiar with the basics of PHP, then the possibilities are endless. You can write your own PHP scripts or use scripts available for free on the web.

    12. How to Create a PHP/MySQL Powered Forum From Scratch

      How to Create a PHP/MySQL Powered Forum From Scratch

      Tutorial Intermediate

      In this tutorial, we're going to build a PHP/MySQL powered forum from scratch. This tutorial is perfect for getting used to basic PHP and database usage....