RSS
people

wp to twitter error

Scenario:

I upgrade one of my wordpress plugin “WP to Twitter” to latest version (Version 2.2.0) for the OAuth and found that it doesn’t work with my hosting plan (hostgator).
When I click on the “Connect to Twitter” and there is a fatal error “Fatal error: Class ‘OAuthSignatureMethod_HMAC_SHA1′ not found.
After performing some debugging and found that it is due to OAuth enabled in my hostgator PHP.

In hostgator, they are using PHP 5.2.14 with OAuth enabled. This is the main reason causing the problem.
Inside the PHP OAuth, it contain of a set of classes (OAuthException is one of them) and “WP to Twitter” plugin is using this class to perform some checking and causing the problem.

Solution:

Here is the modification that I done for my wordpress plugin.

read more »

5 Comments | Tags: , ,

how to exclude directories while using tar command

A quick post to teach on how to exclude directories while using tar command in linux.
Most of the developers/system administrator should know how to using tar command to create a archive/backup for an application.

But I am facing some difficulty to use the tar command exclude multiple directories until I found this post.

read more »

No Comments | Tags: , ,

retrieve visitor country information

I am quite busy for the pass 1-2 months and did not update this blog.
Today I would like to share a simple and useful script to all on how to retrieve visitor country information.
It is useful when you want to analysis/track your visitor information (similar with those webstats that show the visitors country information)

I am using the api service from the hostip.info.
By passing the visitor IP Address to api service, it will return the country information to your script.

Example:
read more »

1 Comment | Tags: