Page 1 of 1

not work

Posted: Sun Feb 03, 2008 2:09 pm
by clever
PHP graphical hit counter (PHPGcount)
Version: 1.1 from 26th October 2007

The test passes normally
http: // vorgashor.alfaspace.net/counter/graphco unt.php? page=test

At attempt to open .html, the counter is not displayed
http://vorgashor.alfaspace.net/Page_test.html

The script looks like:
< p align = "center" >
< script language = "Javascript"
src = " http: // vorgashor.alfaspace.net/counter/graphcount.php? page=Page_test " > <!--
// - > </script> </p>

Though the counter is not seen. Figures in a file Page_test.txt vary.
What I make not so? Help!

Posted: Sun Feb 03, 2008 7:50 pm
by Klemen
This is because your host automatically adds code to the script output and this breaks the Javascript code. It won't work with the host you have.

Posted: Mon Feb 04, 2008 10:36 am
by clever
Why then the test works ?
http: // vorgashor.alfaspace.net/counter/graphco unt.php? page=test

Posted: Mon Feb 04, 2008 7:12 pm
by Klemen
It doesn't work properly. Your host adds this code to the top:

Code: Select all

<!--alfaspace.net adv header BEGIN-->
<center>
<a href="http://mp3.alfamoon.com">Download Cheap MP3</a> 
&nbsp;&nbsp;
<a href="http://map1.com.ua">Ęŕđňŕ Óęđŕčíű</a> 
</center>
<!--alfaspace.net adv header END-->
and this code to the bottom:

Code: Select all

<!--alfaspace.net adv footer BEGIN-->
<p align="center"><b><font face="Tahoma, verdana">
<a href="http://kanari.alfamoon.com/">Ęŕíŕđńęčĺ îńňđîâŕ</a>&nbsp;
<a href="http://bbplace.com">free hosted forums</a>&nbsp;
<a href="http://forum.alfaspace.net">ôîđóě âĺáěŕńňĺđîâ</a>&nbsp;
<a href="http://www.alfaspace.net">áĺńďëŕňíűé őîńňčíă</a>&nbsp;
</font></b></p>
<!--alfaspace.net adv footer END-->
and like said that breaks the Javascript.