Page 1 of 1

problema display ccount

Posted: Fri Sep 30, 2005 9:40 am
by lonpad
Script URL:
Version of script:
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try:

Write your message below:


Hi the count work on very well excetp the display i had tryed all possible. Install one and reinstall a lot of. I read all topics about the same problema. Edited clicks.txt the mine is empty ( not possible problem ) ....uploaded into binary mode ( images) and ascci mode the rest ( all is ok not probleam possible ) then.....i am lost about this....the countes count very well in the admin control panel. What is my possible problem.

I had uploaded a little page with the code into.

http://lonpad.iespana.es/pru.htm as example of the code.

If u can tell me the problem i will be more greet. Thanks

Posted: Fri Sep 30, 2005 10:16 am
by Klemen
Hi,

The problem is that your hosting company automatically adds advertising code to every page. Your display.php prints this code:

<script language="Javascript" type="text/javascript">
<!--
rnd=Math.floor(Math.random()*1000); var b=(''+location.hostname).split('.'); h='web.'+b[b.length-2]+'.'+b[b.length-1]; document.write('<sc'+'ript src="http://'+h+'/perso/js.php?'+rnd+'"><'+'/sc'+'ript>');
// -->
</script>

var ccount_link = new Array();
ccount_link[3]=1;

function ccount_display(id)
{
document.write(ccount_link[id]);
}

<script language="javascript" type="text/javascript">
<!--
document.write('<sc'+'ript src="http://'+h+'/perso/js2.php"><'+'/sc'+'ript>');
// -->
</script>


Everything that is bold is NOT code from display.php, this is what your hosting company automatically adds to all pages. And this code is breaking up the display.php Javascript code.

That's why it won't work on your server. Find a server which supports PHP and doesn't add its own code.

Regards

is there no solution without change server?

Posted: Fri Sep 30, 2005 10:21 am
by lonpad
Thanks for the reply, i like very much your script, its works so good, and if is would be possible i will like to use.

Is there any possible solution, any code or some else?

Thank you again

Posted: Fri Sep 30, 2005 11:49 am
by Klemen
Find a server which supports PHP and doesn't add its own code (ads). Some suggestions are here:
http://www.phpjunkyard.com/hosting.php