PHP
Convert UTF-8 to TIS-620 in PHP
In case you don’t have iconv and mbstring, you might use below function to convert UTF-8 to TIS-620.
function utf8_to_tis620($string) {
$str = $string;
$res = "";
for ($i = 0; $i < strlen($str); $i++) {
if (ord($str[$i]) == 224) {
$unicode = ord($str[$i+2]) & 0x3F;
$unicode |= (ord($str[$i+1]) & 0x3F) << 6;
$unicode |= (ord($str[$i]) & 0x0F) << 12;
sugree's blog
2 comments
Read more
6914 reads
Pontomail Webmail Client for Drupal
Simply is the best! Do you ever want to have a good webmail client for internal use only? It should be tightly integrated into your intranet website, e.g., single password and single sign-on. Most of all, it must not be too heavy but effective and easy enough for end-users. Actually, it depends on what your intranet software is. I do recommend you to try Drupal. Drupal has everything you want. And it also has a module to serve a simple webmail client providing single sign-on for you and your colleagues.
- sugree's blog
- Add new comment
- Read more
- 3408 reads
phpMyAdmin released new version!!.
I found the phpMyAdmin project is released new major released version 2.8.0.2. It change to improvement features.
The new featu
- zendz's blog
- Add new comment
- Read more
- 1719 reads
Generate .pot files of custom modules in Drupal
Since I developed my own modules in Drupal, now it’s time to translate them into Thai. In order to translate custom modules, I need to generate .pot files from all PHP codes. Drupal provides extractor.php in the translation templates or you may directly get it from CVS. Note that you need PHP command line interface to run extractor.php. In Ubuntu, you can install php4-cli or php5-cli which match to your installation. To generate .pot files, follow below instruction.
- sugree's blog
- Add new comment
- Read more
- 1180 reads
Smooth procedure to upgrade Drupal 4.7.0 beta 5 to beta 6
I have just received the urgent security notification regarding to Drupal all versions. If you are using Drupal, please upgrade immediately! According to the announcement, the latest version are as follows.
- Drupal 4.6.6
- Drupal 4.5.8
- Drupal 4.7.0-beta6
I upgraded howforge.com to beta 6 in last minute. Though, even it is just bugs fix version, there are lots of change from beta 5 to beta 6. Anyway, it is very easy to upgrade. Below is my instruction.
- sugree's blog
- 2 comments
- Read more
- 1032 reads
Web Framework Statistics
This week could be the Web Framework week here. I have just found a good statistics regarding web framework. The first one is about Python Web Framework comparing to others. Arggg. There are so many frameworks for Python. Zope is the most popular one. The second is Python Template Engine Statistics. Zope is the first one again. And the last one, Programming Language Statistics, Java is the first and Python is the 7th.
- sugree's blog
- Add new comment
- Read more
- 1506 reads
Recent comments
3 years 4 weeks ago
3 years 9 weeks ago
3 years 9 weeks ago
3 years 10 weeks ago
3 years 10 weeks ago
3 years 12 weeks ago
3 years 12 weeks ago
3 years 12 weeks ago
3 years 12 weeks ago
3 years 13 weeks ago