Install Counterize plugin for WP in php5 environment

Posted on 2005-8-25 星期四

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.


1 条评论 for 'Install Counterize plugin for WP in php5 environment'

  1.  
    2005,8,25 | 11:32 下午
     

    Thanks for making me aware of the problem :)

留下评论

(必需)

(必需)


Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post | TrackBack URI