Categories
PHP Programming

Multilanguage Programming with UTF-8 Encoding

Image

Multilanguage non-ASCII site? Sometimes we need to make website that can handle languages which contains non-ASCII characters, for example chinese, russian, french, germany, etc.
To handle this, we need to handle the language on 3 parts : on PHP itself, HTML, and on the database (i use MySQL as example here).
Basically, we need to adjust the charset (character set) into UTF-8.

Categories
PHP Programming

WordPress Login ReCAPTCHA Plugin

This WordPress plugin will add reCAPTCHA to login page. Why use reCAPTCHA instead of other CAPTCHA? Because reCAPTCHA is a powerful CAPTCHA.

Categories
PHP

Panduan PHP dari Newbie – 1

Biasakan menulis kode PHP anda dalam kondisi :

  1. register globals : OFF. Kebanyakan web hosting mematikan setting register globals.
  2. short open tag : OFF. Idem.

Gunakan require, daripada include.
Gunakan require_once (/ include_once) hanya bila diperlukan.

Untuk konstanta (/ sesuatu yang bersifat global), gunakan perintah define daripada variabel biasa.

Percayalah, dengan mematuhi syarat di atas, koding akan terasa menyenangkan 😉