K
K
Kirill Gorelov2015-07-27 18:23:56
PHP
Kirill Gorelov, 2015-07-27 18:23:56

Why doesn't php work in html?

Hello. Doesn't want to work php in html.
I took an example from here php-include.ru/stati/kak-dobavit-php-kod-v-html-st...
And also Why doesn't php code work in html?
How to be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Даниил Колесниченко, 2015-07-27
@Kirill-Gorelov

Закройте туториал из которого Вы берёте код и никогда не открывайте. И пожалуйта, не пытайтесь больше вставить PHP в HTML.

N
nonlux, 2015-07-27
@nonlux

The server decides what to interpret and how.
That is, if the web server is not configured to execute php in html files, it will not execute it.
And in the case, what is the problem with making the file extension php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question