(I use Wamp64) I have a simple PHP file, but when I change the .php extension to .html, the page doesn't shows up correctly. This is my PHP file:
<!DOCTYPE html>
<?php
require ('steamauth/steamauth.php');
?>
<html>
<head>
<title>page</title>
</head>
<body>
<?php
if(!isset($_SESSION['steamid'])) {
echo "welcome guest! please login<br><br>";
loginbutton();
} else {
include ('steamauth/userInfo.php');
echo "Welcome back " . $steamprofile['personaname'] . "</br>";
echo "here is your avatar: </br>" . '<img src="'.$steamprofile['avatarfull'].'" title="" alt="" /><br>';
logoutbutton();
}
?>
</body>
</html>
And this is my page (with .html extension): html page