Problem with script counter.php

tried canvas.png in my index.html and it looks like a black rectangle which is fine as long as its transparent because the number files 1.png 2.png etc,etc are in gold.
but my hit counter is not working yet, i am starting to bang my head,:rage: i messed around with the counter.php i have gone back to the drawing board so i am using the exact php file as the one i posted, any ideas please