As shown in the figure, the code for executing the file is as shown below. . . .
As a result, the code in dbConfig.php is output directly to the browser. No analysis at all.
Copy the code in dbConfig.php to the running php file and it will be normal
It is estimated to be 5.6 The version has upgraded the initialization and execution restrictions of the class. What do experienced heroes do?
Let me answer my own question. . hehe.
Please take a look at the php statement of dbConfig.php. It is for short tags. This will happen if the php.ini configuration does not enable short tag support. The problem is solved after turning on short_open_tag = On. . .