I have a PHP application developed using the Codeigniter framework.
My application works perfectly find on my shared hosting service (Hostgator) but doesn’t work right when developing locally with Xampp.
I’ve attached a screenshot showing an example of what I see with Xampp vs what I see on my web host.
Stuff I’ve tried so far:
- Double check DB settings
- Reinstall Xampp (did this like 5 times…)
- Restart computer
- Check Xampp apache error logs (nothing useful in there)
- Check to see if ports were occupied by another service
- Set my base URL in codeigniter and add virtual hosts to apache config files
- Edit hosts file to point virtual hosts to localhost

Here’s my code for the above image:
<?if($this->data['site_logo']!=''):?>
<img SRC="<?=$this->data['site_logo']?>" alt="<?=$this->data['site_name']?>" />
<?endif;?>
Thanks!
To enable short tags, head in to your php.ini file, find the line with:
and change it to