Answer the question
In order to leave comments, you need to log in
Why does the browser see PHP code as a comment?
A strange situation has arisen. I decided to write, for my needs, a mini engine for the site. I don’t want to learn from the framework right away or use someone else’s solutions. Just for study, nothing top secret. Essentially a couple of template pages, a main page and a class for displaying pages. But I ran into such a trouble, on the main page the PHP code works fine, but on the secondary pages it doesn’t work at all. A stupidly empty page with one line of HTML and one output from phpinfo() only outputs HTML.
In development mode, the browser displays my PHP code like this:
<!--?php
phpinfo();
?--> ==$0
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question