In an external file demo1.php, there is a function test and an echo '000000'; in the other file demo2.php, require 'demo1. php'; echo '000000'; why is the following content not displayed in the industry after I call test () in demo2? 1111111 do not show do not call... an external file demo1.php has a function test and an echo '123 ';
In another file demo2.php, require 'demo1. php'; echo '123 ';
Why is the following content not displayed in the industry after I call test () in demo2? 1111111 not displayed
No call, normal
Reply content:
In an external file demo1.php, there is a function test and an echo '123 ';
In another file demo2.php, require 'demo1. php'; echo '123 ';
Why is the following content not displayed in the industry after I call test () in demo2? 1111111 not displayed
No call, normal
1 show me the code!
2. Debug php errors. some errors may occur. The error Log is displayed.
How can I load require 'demo1. php' in a different folder?
There may be errors in demo1, or demo1 does not exist.
It may also be your single quotes and semicolons.
It should have reported a Fatal error. you can open the error report.
Error_reporting (E_ALL );
Ini_set ('display _ errors ', 'on ')