What are the potential security risks of using .html pages in a protected area in PHP?

Using .html pages in a protected area in PHP can pose a security risk because the PHP code within these pages will not be executed by the server, leaving sensitive information vulnerable. To mitigate this risk, all pages within the protected area should have a .php extension so that PHP code can be properly executed and protected.

// Before
include 'protected_page.html';

// After
include 'protected_page.php';