Tonight we'll talk about the difference between the include () and require () in PHP system functions, which we often use, usually normal, when they
Area Do not show up, but once an accident occurs, immediately the difference appears, let us say in detail below.
Include (): From the English speaking, is included in the meaning, often used in a page to introduce a file or contain another page, when the introduction of the file
No Is present, the system will prompt an error, but the program will continue to execute . ;
Require (): literally, is required or required meaning, also often used to introduce a file page, but when the file does not exist, the process
Order It's not going to work anymore, will terminate execution .
I believe that we will never have doubts about these two methods, very simple, good, share to this end, useful on the reward , thank you!
The above introduces the difference between PHP include and require, including the content, I hope that the PHP tutorial interested in a friend helpful.