1, include,
require contains a file at the location where it was called.
2, include_once, therequire_once function works the same as include, but it first verifies that the file is already included. If it is already included, Include_once is no longer executed. Other same as include.
3,require and include the main difference, a,require error, the script will stop running, and include error in the case, the script will continue to execute. b, regardless of the location of the require , the development files will be included in the script that appears require . For example, even if the require is placed in an if statement that evaluates to FALSE, the specified file will still be included.
4, use require_once can solve the problem that the file is overwritten. The require_once function ensures that the file is included only once. After encountering require_once, the subsequent attempt to include the same file is ignored.
The above describes the difference between the include,include_once,require,require_once, including the require aspects of the content, I hope that the PHP tutorial interested in a friend helpful.