V
V
Vlad2020-04-14 10:56:14
PHP
Vlad, 2020-04-14 10:56:14

php not working in html

OpenServer
5e956c0e43ba7732083524.jpeg

If you write a script to a .php file, everything works (html works there too)
If you write a script to a .html file, the html code works, but the script does not. It just doesn't output anything, the <?php ?> icons themselves aren't displayed either, so PHP is working but there's no output?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Vasilev, 2020-04-14
@vchpro

php and should not work in html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question