N
N
Nekit Medvedev2017-04-03 15:32:15
PHP
Nekit Medvedev, 2017-04-03 15:32:15

Any php code is commented on the html page, what should I do?

document code:

<html>
<head>
     <title>Hello World!</title>
</head>
<body>
<?php
echo "hello, world!";
?>
</body>
</html>

Explore element
<html>
<head>
     <title>Hello World!</title>
</head>
<body>
<!--?php
echo "hello, world!";
?-->
</body>
</html>

The server is emulated through denwer
before that it worked through HostiMan.ru hosting, the result is the same,
what should I do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill Kublyakov, 2017-04-03
@NIKROTOS

Change html file to php.
PHP will not work in html files.

A
Arman, 2017-04-03
@Arik

Maybe a browser extension? Try to open to others

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question