hi there
after reviewing your code,i noticed, that short open tags are used.
add in php.ini
short_open_tag = On
with that i use this nifty plugin under php7.4
other way ist to do a
find . -iname “\*.ph\*” -type f -print0 |xargs -0 sed -i -e ‘s/<? /<?php /g’ -e ‘s/<?\/\//<?php \/\//g’ -e ‘s/<?\/\*/<?php \/\*/g’ -e ‘s/<?\=/<?php echo/g’
to replace <? with <?php .
kind regards and thx