Texinterest
Sign in
x
Texinterest
Empower your learning
About Us
Privacy Policy
Forum Discussions
C Programming
Subjects
Science
Computer
Programming
English
General Knowledge
Rennaissance
Courses
Exams
Interviews
Add Notes
Contact us
Menu
Science
Computer
Programming
English
General Knowledge
Rennaissance
Differentiate between require() and include() function in PHP?
require() and include() function in PHP are used to include a file. But the type of error if the file not found is different.
include() function sends an error if file not found, whereas require() sends a fatal error.
The include statement includes and evaluates a specified line. That is it will include a file within a given path.
include will allow script to continue, whereas require will not allow script to continue.
require_once() function will check if the file has already included. If so it will not include the file specified in the path again.
Top Questions
Create a registration form using HTML
UNION in C
REST API in Laravel
Overloading in C++
What Can PHP Do?
printf() and scanf() function in C Programming
Command line scripting in PHP
Variables in C Programming
What is Yii Framework | Advantages of Yii over other frameworks | Different versions of Yii
What are the different functions in PHP for sorting an array?
How to Get current version of PHP?
Generating A QR Code With PHP
What is the difference between git diff and git status?
BASIC HTML PAGE
Inheritance in C++
What are sessions in PHP?
What is PHP?
What is the difference between GET and POST?
Return Statement in C
Structure of a C Program
Tex AI Assistant
Online & ready to help
×
Hi! 👋 I'm your Texinterest AI assistant.
Ask me anything about programming, interview prep, courses, or any topic you're studying.
Press Enter to send · Powered by Gemini AI