PHP: Crontab Class to Add, Edit and Remove Cron Jobs

Provided that your user account on the server has the privileges to access crontab thus can create or remove cron jobs, you can use this PHP class to integrate crontab in your application. I created it for many of my own projects that need crontab to do scheduled jobs. It’s pretty straightforward.

Continue reading “PHP: Crontab Class to Add, Edit and Remove Cron Jobs”

Benchmarking PHP GEttext

I created a simple web page to compare the performance of various localization methods for PHP. It only contains 3 localized strings and does not use advanced features of gettext (e.g. plurals). I wrote a version using the gettext PHP extension (“gettext Ext.”), one using PHP-gettext (“gettext PHP”, a gettext implementation written in pure PHP) and a version that does not use gettext at all, instead it uses an array that contains all the translations (“String ID”).

Continue reading “Benchmarking PHP GEttext”

Windows Language Strings / Country/Region Strings

The following is a list of Country/Region strings recognized by setlocale. Strings for countries/regions that are not supported by the operating system are not accepted by setlocale. Three-letter Country/Region-name codes are from the International Organization for Standardization and International Electrotechnical Commission (ISO/IEC) specification 3166.

Continue reading “Windows Language Strings / Country/Region Strings”