PHP Code works on shared hosting but not on Xampp
Shorttags seems to be disabled on xampp.
Simply add a php after the question mark. Every PHP part should start with
<?php
The more correct version for
<?=$var?>
is
<?php echo($var); ?>
To enable short tags, head in to your php.ini file, find the line with:
short_open_tag = 0
and change it to
short_open_tag = 1
You should always use long PHP tags:
<?php if($this->data['site_logo']!=''): ?> <img SRC="<?php echo $this->data['site_logo'] ?>" alt="<?php echo $this->data['site_name'] ?>" /><?php endif; ?>