not work

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
clever
Posts: 2
Joined: Sun Feb 03, 2008 1:45 pm

not work

Post 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!
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
clever
Posts: 2
Joined: Sun Feb 03, 2008 1:45 pm

Post by clever »

Why then the test works ?
http: // vorgashor.alfaspace.net/counter/graphco unt.php? page=test
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply