I have code like this
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<?php
include ('set/tags.html')
?>
<link href="/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="header" id="header">
<?php
include ('set/header.php');
?>
</div>
<div class="menu">
<center>
<?php
include 'set/menu.php';
?>
</center>
</div>
<div class="mainbody" id="body">
<center>
<table border="0">
<tr>
<td>
<a href="numbers"><img src="img/number.png" onmouseout="this.src='img/number.png'" onmouseover="this.src='img/number2.png'"/></a>
<br><center><font face="Trebuchet MS" size="4">Numbers</font></center></br>
</td>
<td>
<a href="algebra"><img src="img/algebra.png" onmouseout="this.src='img/algebra.png'" onmouseover="this.src='img/algebra2.png'"/></a>
<br><center><font face="Trebuchet MS" size="4">Algebra</font></center></br>
</tr>
</table>
<?php
$handle = fopen("counter.txt", "r");
if(!$handle){
echo "could not open the file" ;
}
else {
$counter = (int ) fread($handle,20);
fclose ($handle);
$counter++;
echo "<strong> You're ". $counter . "<sup>th</sup> visitor</strong>";
$handle = fopen("counter.txt", "w" );
fwrite($handle,$counter) ;
fclose ($handle) ;
}
?>
</center>
</div>
<div class="footer">
<?php
include 'set/footer.php';
?>
</div>
<div class="side" id="side">
<center>
<?php
include 'set/side.php';
?>
</center>
</div>
</body>
</html>
and when i save it as index.php, everything works. but when i save it as index.html, php part doesn't work!!
Does any one know what the problem is??
By the way, I'm using Ipage hosting and when i was using 000webhost, it worked when i saved as html