Category

Archive for the 'WP Plugins&Themes' Category

Install Counterize plugin for WP in php5 environment

I downloaded a counter-plugin-Counterize for my word press,but after I installed it,I found that in the Counterize entries table the IP,URl,Referer,UserAgent are all “unknown”.

And after I read the source code of counterize.php I found that the syntax

  1. getenv(“REMOTE_ADDR”)

is different in PHP4 and PHP5.In PHP5 The syntax should be

  1. $_SERVER[‘REMOTE_ADDR’]

You can download the package from here includes two version of the plugin.

The documentation of this plugin you can find it in author’s site.