---
title: "Discussion on \"What is the difference between include and require in PHP?\" | Hashnode"
description: "Discussion on \"What is the difference between include and require in PHP?\". It's use to insert the content of one PHP file into another PHP file before the server executes it."
url: "https://hashnode.com/posts/what-is-the-difference-between-include-and-require-in-php/62f3db2831be20833796d780"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What is the difference between include and require in PHP?](https://anandbaraik.hashnode.dev/what-is-the-difference-between-include-and-require-in-php?utm_source=hashnode&utm_medium=feed)

It's use to insert the content of one PHP file into another PHP file before the server executes it.

Apr 13, 2022 · 3 min read · anandbaraik.hashnode.dev  
Read the article

-   [#require](https://hashnode.com/tag/require)
-   [#php](https://hashnode.com/tag/php)
-   [#include](https://hashnode.com/tag/include)
-   [#requireonce](https://hashnode.com/tag/requireonce)
-   [#includeonce](https://hashnode.com/tag/includeonce)

## Written by

[Anand Baraik](https://hashnode.com/@anandbaraik)

@anandbaraik · India

  
[View profile](https://hashnode.com/@anandbaraik)

Novice in everything, student for life!

Novice in everything, student for life!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
