xampp for Windows
Why my localhosted files appear like this?
http://109.236.82.36/upload/
Everything is undefined, the defined variables aren't working.
Am I supposed to enable a plugin in xampp to get i开发者_如何学Ct 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.
精彩评论