I need to parse HTML through PHP. This works fine on PHP 7.4 with the following added to the .htaccess file:
AddType application/x-httpd-php .html .htm
However as soon as I upgrade to PHP 8 on the app service, the code is displayed rather than parsed. I have tried the below, suggested in another post, which returns NULL:
<?php echo $_SERVER['REDIRECT_HANDLER']; ?>
Any suggestions?