All the php code is not interpreted, but just spat out as plan text. When I look at the page source it's like so:
- Code: Select all
$side = $_REQUEST['side'] * 10;
if ($side != NULL)
$side = $side - 10;
$samlet = mysql_query("SELECT * FROM `samlet` ORDER BY `dato` DESC LIMIT " . $side . ",10");
And so on.
If I change the <? to <?php it works, but shouldn't it work anyway? Is this some setting in apache or something?
It happened when I made a clean installation om XAMPP 1.7. Both apache and mysql is running.
even on http://localhost/xampp/ the title is "XAMPP <?include('.version');?>". How can I fix this? I've tried re-installing xampp multiple times.