Does anyone know why my localhosted files appear like this?
Everything is undefined, the defined variables aren't working.
Am I supposed to enable a plugin in xampp to get it to work?
Does anyone know why my localhosted files appear like this?
Everything is undefined, the defined variables aren't working.
Am I supposed to enable a plugin in xampp to get it to work?
PHP short tags must be disabled. If you check the source of your generated page, you'll notice that the img tags have src values like
<?=$website?>/images/hitpoints.gif
You have two options here. Either change the code to
<?php echo $website ?>/images/hitpoints.gif
or enable short tags in php.ini. You can get help on the second option using google.
I strongly suggest the first one as short tags are going to be chucked in future versions of PHP incompatible with XML documents and make code less portable.