I have inherited a website for which I need to make some changes. As always, there are many ways to do something in the development of the site. However, this particular site confused me. All html is delivered via heredoc php scripts. However, no one is handling php.
For example (structure only) index.php:
<?php $html = <<<html <html> <head></head> <body> {more simple HTML here. No php processing to be done} </body> </html> html; echo $html; ?>
I understand php, but I canβt understand why they generate the page in such a way as to withstand simple delivery without processing the php variable. Before I simply assumed that the person had no idea what they were doing, I thought I would ask. Any ideas?
This is my first post on StackOverflow, so welcome feedback on forum etiquette.
source share