The solution to wamp's inability to parse the php file: 1. Find and open the php.ini file; 2. Set the value of the "short_open_tag=off" option in php.ini to "on"; 3. Restart Just download PHP.
The operating environment of this tutorial: Windows 7 system, PHP version 8.1, Dell G3 computer.
What should I do if wamp cannot parse the php file?
Specific problem description:
My wamp has been installed, and everything else can be used including mysql, etc., but it is the written php file parsing No! ! ! ! What is displayed directly through the browser is the source code of php!
Solution:
You try setting short_open_tag=off in php.ini to on
Then restart PHP
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What should I do if wamp cannot parse php files?. For more information, please follow other related articles on the PHP Chinese website!