How can including non-PHP code within PHP scripts result in unexpected errors?

When including non-PHP code within PHP scripts, it can lead to unexpected errors because the PHP interpreter will try to parse and execute the non-PHP code as PHP code, resulting in syntax errors or other issues. To avoid this problem, you can use PHP's `readfile()` function to include non-PHP files within your PHP script without causing any parsing errors.

<?php
readfile('non-php-file.txt');
?>