What could be causing PHP code to display as plain text on a webpage, even though PHP is being executed on the server?

The issue could be caused by the PHP code not being processed by the server. This could be due to the file extension not being recognized as a PHP file, the PHP module not being enabled on the server, or an error in the PHP code itself. To solve this issue, make sure the file has a .php extension, ensure that the PHP module is enabled on the server, and check for any syntax errors in the PHP code.

<?php
// Your PHP code here
?>