Explains The Difference Between Require And Require_once In PHP
- Forums
- PHP
- Explains The Difference Between Require And Require_once In PHP
this is the differences between require() and require_once() functions in PHP. Can you please explain a little bit about the differences between require() and require_once() in PHP [1292], Last Updated: Sat May 18, 2024
dermil
Wed Jan 05, 2011
1 Comments
7166 Visits
hi, i found your tutorial regarding difference between include() vs include_once() now i want to ask you a questions, can you please explain a little bit about the differences between require and require_once in php
from what i have read in the php.net website, im thinking they are same same as include()
The include() statement includes and evaluates the specified file. - The documentation below also applies to require().
of basically, there is not difference, unless anyone knows any specific differences. please tell me
require VS require_once ?????
They are basically the same, what you need to understand is the differences between require() and include()
I will explain the basic:
require()
==========
with require() function, if there is an error in the file you require(), the script will stop (die)
but, with include(), if there is an error, the error will be displayed but the script will continue and not stop.
https://www.wallpaperama.com/forums/_zemyyr.html