PHP Code Not Rendering Properly on Website, Appearing as Commented Out in Source Code

Just like in the heading of this post, I am trying to write some PHP inside HTML, but it doesn't show up on the webpage. However, when I use only PHP without HTML, it works properly...

What do to?

Posted Dec 29, 2023, 4:30 PM UTC

18
Digital-Chupacabra•

A starter would be to show some formatted examples of what you are talking about and describe the setup you are using.

6
fullstack_web_devOP•

Hello, I solved the problem.

The problem is because the PHP code was being read as a string.

-1
Digital-Chupacabra•

It's generally considered polite to explain your solution for any future person who finds your post.

1
fullstack_web_devOP•

Da, da, ali stvorio sam sustav php prevoditelja za predloške.

1
Digital-Chupacabra•

translator system for templates

Doesn't really explain it ...

1
TruthahnLeberwurst•

These posts…

„Help I’m stuck, please read my mind, thanks“

5
hejj•

Why do you believe this is Docker related?

4
fullstack_web_devOP•

Hello, I solved the problem.

The problem is because the PHP code was being read as a string.

-1