What are common reasons for PHP code not being executed or displayed properly in web pages?

One common reason for PHP code not being executed or displayed properly in web pages is that the file extension is incorrect or missing. Ensure that the file containing PHP code has a .php extension. Additionally, make sure that the PHP opening and closing tags are correctly used in the file.

<?php
// Your PHP code here
?>