Item: Errors and Questions By: Willem van Leeuwen 
Write error:
This error only occured in the <4.0.5 versions.

Warning: fopen(install.lock) [function.fopen]: failed to create stream: Permission denied in /home/www/htdocs/.../phpmystats4/install2.php on line 228

Warning: fwrite(): supplied argument is not a valid stream resource in /home/www/htdocs/.../phpmystats4/install2.php on line 229

Warning: fclose(): supplied argument is not a valid stream resource in /home/www/htdocs/.../phpmystats4/install2.php on line 230

Everybody thinks the installation was unsuccesfull.
But if the tables were installed succesfully you only have to follow 3 steps:
1. delete notinstalled.lock
2. create install.lock
3. enjoy your PHPMyStats
Alternative: try to set chmodd to 755 or 777

Division by zero error:
If your installation was succesfull, you can view index.php. But because you didn't add a page to PHPMyStats yet, there are 0 records.
The error is solved when you've added pages to PHPMyStats.
(to add pages to PHPMyStats, see README)

HTML??:
Many people ask if PHPMyStats can be included in a html page.
You can do that in a frame or something but I think it's better when you just rename .html to .php.