---
title: "What is the difference between include() and require()"  
description: "What is the difference between include() and require()"  
author: "Royce Roy"  
published: 2016-09-26  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/23060/what-is-the-difference-between-include-and-require  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# What is the difference between include() and require()

When file is not found using include() method, then it will show warning, but program execution will continue whereas in require(), it will cause fatal error and halt the program execution.

## Answers

### Answer by Royce Roy

When file is not found using include() method, then it will show warning, but program execution will continue whereas in require(), it will cause fatal error and halt the program execution.


---

Original Source: https://www.mindstick.com/interview/23060/what-is-the-difference-between-include-and-require

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
