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:

WordPress Article Template plugin fix

Scenario:
A week ago, I upgraded my blog version to the latest version 3.0 and installed few plugins into this blog.
Found a very useful plugins call Article Templates that contribute by Binny V A.

Enables template support for posts and pages. You can see all existing templates in the Manage Templates page.

But found that the plugin does not work as expected. It does not save the template and the whole plugin is not usable.
No choices, I have to debug into WordPress & Article Template plugin in order to make it work for me.
Found the problem due to the “template” does not register as a post type.

So I added in the a line command in order to make it works.

read more »

11 Comments | Tags: , ,

PHP send email request read receipt

Guys,

When users using Emails function in some web base application (like sugarcrm, joomla), they might need to request read receipt from the recipients.
Here is a simple tutorial on how to add in the “Request read receipt” in email while send out email thru PHP.

I am using the phpmailer class to develop the feature, please download it from the source forge.

Here is the simple script to send out email and request for read receipt.
read more »

2 Comments | Tags: ,