The phprequire condition reference problem is shown on the Internet.
The include () and require () functions are the same, but their usage is somewhat different. include () is a conditional include function, while require () is an unconditional include function.
Regardless of the value of $ something, the following code includes the file somefile. php into the file:
If ($ something) {require 'somefile. php ';}
However, in my actual test, when the condition is false, it is not included.
The reason is that the environment is different. please advise.
Reply to discussion (solution)
What you see is an introduction to php4
In php5, both require and include are loaded during pre-compilation (invisible when not in use)
The difference between the two is that the former will interrupt the program when an error occurs, while the latter will not
This is obviously wrong. at least in the current version, if (false) {} will not execute the if code block at all.
$ Something = 0 or equal to null. you can see whether it will be introduced.