What is the difference between calling a PHP file through HTML/form and directly through PHP include?

When calling a PHP file through HTML/form, the PHP code within the file will not be executed unless the server recognizes the file as a PHP file. On the other hand, calling a PHP file directly through PHP include will execute the PHP code within the file regardless of how it is accessed. To ensure that the PHP code is executed properly, it is recommended to include the PHP file using PHP include rather than through HTML/form.

<?php
// Include the PHP file directly
include 'file.php';
?>