D
D
DrunkMaster2016-04-24 12:45:05
PHP
DrunkMaster, 2016-04-24 12:45:05

PHP is not executed in html, where to dig?

In htaccess I write

RemoveHandler .html .htm
AddType application/x-httpd-php .htm .html .shtml

But in html in the page code is still
<?php echo "текст"; ?>
What could be the reason for this, what server settings to dig? PHP is allowed for the user, normal php files are normally executed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Strukov, 2016-04-24
@DrunkMaster

Look in this file apache\conf\extra\httpd-xampp.conf

<FilesMatch "\.php$">
    SetHandler application/x-httpd-php
</FilesMatch>

Need to do the same for html i guess

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question