My web host’s PHP engine is taking everything outside <?php ?> and replacing line breaks with <br>, like so:
<?php
echo 'php1';
?>
Hello
world
<?php
echo 'php2';
?>
The output I get is:
php1
<br><br>Hello<br>world<br><br>php2
All of the other servers I use do this, which is what I want:
php1
Hello
world
php2
Can I disable this behaviour?
As far as I can tell, there is no PHP
.inidirective to do this.Contact your webhost and ask them about it, but I suspect that something else is up here.