This code I saved to a file named 1.php, run this file will be error (Parse error:syntax error)
The following code I saved to a file named 2.php (in the same directory as 1.php), my file in 2.php include()
According to the truth, the report will echo the results of the error, but I am in the actual operation, the page only error. Ask the great God for advice, this is why AH.
Reply content:
This code I saved to a file named 1.php, run this file will be error (Parse error:syntax error)
The following code I saved to a file named 2.php (in the same directory as 1.php), my file in 2.php include()
According to the truth, the report will echo the results of the error, but I am in the actual operation, the page only error. Ask the great God for advice, this is why AH.
Include introduced sub-page error, the program will continue to execute,
If you use require, you won't perform the following.
The first file is no problem. The PHP end tag does not require a symbol.
The second file is not a problem.
So the first file outputs "1", and the second file outputs "11", which is the same as my test results.
The problem with this is not the problem with the code itself (probably the wrong one?). Special characters? Different configuration? )。