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. Building a Product CSV Import Tool in OpenCart: Part 2

      Building a Product CSV Import Tool in OpenCart: Part 2

      Tutorial Intermediate

      In our last tutorial we discussed how to implement an import tool, in which we created an import button and its front-end template. Today we’ll learn how we...

    2. Building a Product CSV Import Tool in OpenCart - Part 1

      Building a Product CSV Import Tool in OpenCart - Part 1

      Tutorial Beginner

      Suppose you have a list of products for your store which prices needs to be updated on site. But you hate manual jobs? You want a solution where you can...

    3. WP_Query Arguments: Date

      WP_Query Arguments: Date

      Tutorial Intermediate

      In this part of the series on WP_Query, learn how to query your posts by their publication date and use complex arrays of arguments to create more flexible...

    4. Set Up Scheduled Tasks in Magento

      Set Up Scheduled Tasks in Magento

      Tutorial Intermediate

      Magento, being one of the most popular e­-commerce frameworks, provides plenty of catalog features and other utilities which set it apart from its rivals....

    5. Use Two Loops to Output Your First Blog Post Differently

      Use Two Loops to Output Your First Blog Post Differently

      Tutorial Intermediate

      Ever wanted to show more detail for the first post on your main blog page? Learn how to do it using the WP_Query class and the pre_get_posts hook.

    6. Mastering WP_Query: Actions and Filters

      Mastering WP_Query: Actions and Filters

      Tutorial Intermediate

      In this third part of our series, we're going to review the actions and filters related to WP_Query.

    7. Quick Tip: Accept Multiple Vouchers in OpenCart 2.0

      Quick Tip: Accept Multiple Vouchers in OpenCart 2.0

      Tutorial Beginner

      OpenCart doesn't allow its users to use multiple vouchers for shopping by default. In this article we are going to understand multiple vouchers and their...

    8. Mastering WP_Query: An Introduction

      Mastering WP_Query: An Introduction

      Tutorial Intermediate

      WP_Query is a powerful tool you can use to customise the way your WordPress site queries the database. In this introduction to the series I'll give an...

    9. Build a Real-Time Chat Application With Modulus and Laravel 5

      Build a Real-Time Chat Application With Modulus and Laravel 5

      Tutorial Intermediate

      In this tutorial, I will show you how to implement a real-time chat application with Laravel 5, PostgreSQL, and Pusher. Then we will deploy this application...

    10. Introduction to ProcessWire

      Introduction to ProcessWire

      Tutorial Beginner

      ProcessWire is an open source CMS and CMF. It uses a JQuery-inspired API and uses custom fields to achieve any task thrown at it. In this article I'll give...

    11. Building With the Twitter API: Managing Lists

      Building With the Twitter API: Managing Lists

      Tutorial Intermediate

      Now that you've read about the power of Twitter Lists, we'll write code to build features with the List API.

    12. Building With the Twitter API: The Power of Lists

      Building With the Twitter API: The Power of Lists

      Tutorial Beginner

      Lists are Twitter's most powerful underused feature. Take a second look at how you can use them and learn how to code for the List API.