PHP

Highlight Post Widget Plugin

Posted in PHP on March 9th, 2010 by Zaenal – 6 Comments

The purpose of this plugin is simple. I want to list recents update of my posts. Similiar to default “Recent Posts Widget” by Wordpress, but this one sort the post by last modified time and enable to add a short note about change or update being made. read more »

Determine Client IP on Apache Httpd Configuration

Posted in Know-How, PHP on December 3rd, 2008 by Zaenal M. – Be the first to comment

Sometime REMOTE_ADDR not return the real client IP address value. This is true when the server was behind the firewall, or server use application like Squid, or the client accesses the server trough the proxy (like Google WebAccelerator); so the REMOTE_ADDR become the IP of the firewall server, the Squid server or proxy server. read more »

PHP Locale for Indonesia Language

Posted in PHP on November 22nd, 2008 by Zaenal M. – Be the first to comment

To format a local time/date according to locale settings, like month and weekday names and other language dependent strings, we can use strftime() function respect the current locale set with setlocale(). read more »