Last active
March 24, 2020 12:21
-
-
Save GermanAizek/8c3b4b04468adceb21917b95c7d61791 to your computer and use it in GitHub Desktop.
Выполнение PHP кода в HTML на веб сервере c FastCGI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddHandler fcgid-script .php .phtml .html .htm | |
FCGIWrapper /var/www/php-bin-php74/u0811566/php .php | |
FCGIWrapper /var/www/php-bin-php74/u0811566/php .phtml | |
FCGIWrapper /var/www/php-bin-php74/u0811566/php .html | |
FCGIWrapper /var/www/php-bin-php74/u0811566/php .htm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
С помощью изменения файла .htaccess на данный код можно добиться выполнения PHP вставок в HTML коде.
Данные правила .htaccess работают только на веб серверах FastCGI, большинство хостингов его и использует.
Пример PHP вставок: