WordPress Reserved Global Variables, You Should Avoid Define A Variable Using These Name

Global variable is a variable that is accessible in every scope, in PHP it works ONLY for the same page and the file that are included after. However, some predefined variables, known as superglobals are always accessible in whole site. Both of global and superglobal variable can be redefined or overwrite it’s value. When developing [...]
Prevent Spammer to Register Using The Same Gmail Email (Duplicate User Accounts)

Gmail, Gmail is …, ah I really don’t need to explain this. So, continue reading The Facts Gmail ignores . (dot) in username If you have Gmail account example@gmail.com, actually you also have ex.ample@gmail.com, exam.ple@gmail.com, and so on until all characters in the username are separated with dot. These all have same inbox, and you can [...]
Styling Scrollbar to Look Like Facebook ScrollableArea Using jScrollPane

What Is Scrollbar? According to Wikipedia, A scrollbar is an object in a graphical user interface (GUI) with which continuous text, pictures or anything else can be scrolled including time in video applications, i.e., viewed even if it does not fit into the space in a computer display, window, or viewport. It was also known [...]
Creating a WordPress-Alike Hook For Your Own CMS

Probably you have known this, WordPress code is pretty good, especially when compared with other CMS or what we ever found on PHP tutorials. The one I like is how WordPress uses hooks. If you ever created WordPress plugins, you may experienced that you don’t need to modify any of core code just to add [...]
Searching File Within Directory Recursively Using PHP

Recently I had to find my file stored somewhere in my server. Although I can do this easily using the built-in feature in cPanel File Manager, but what I need is to search file programaticallyusing a script. So, I created this function. The function accepts three parameters: $dir (string), absolute path of the directory to [...]
Sekilas Review Windows 8 Developer Preview

Windows 8 Developer Preview telah diluncurkan beberapa hari yang lalu oleh Microsoft sebagai beta test terhadap Windows 8. Microsoft mengeluarkan preview ini untuk mendapatkan feedback dari penggunanya sebelum akhirnya mereka mengeluarkan Windows 8 versi final. Karena ini versi preview, jadi wajar bila masih terdapat kekurangannya. Namun demikian saya tetap penasaran dan mencoba mendownload dan menginstalnya. [...]
Cara Memasang Komentar Disqus di WordPress

Dulu saya males pake Disqus dan tidak tertarik untuk mencobanya. “Aplikasi pihak ketiga gini lambat, dan ujung-ujungnya nitip brand di web kita”, begitulah pemikiran saya waktu itu. Sampai pada suatu hari ketika bikin web orang, saya stuck ketika minta sistem komen yang bisa login pake Twitter dan Facebook. Karena tidak ingin membuang-buang waktu, maka saya [...]
Membuat Custom URL untuk Attachments Image di WordPress

Pada umumnya URL image/attachment di WordPress adalah http://example.com/wp-content/uploads/, supaya lebih keren kita dapat menggantinya menjadi http://img.example.com/. Mari kita ikuti caranya: 1. Buatlah sebuah sub-domain di cpanel, document Root nya diisi dengan /public_html/wp-content/uploads (lihat gambar 1) 2. Di wp-admin, buka menu Settings->Media 3. Pada field Full URL path to files, isikanhttp://img.example.com/ (lihat gambar 2) [...]
72 New Top Level Domains will be available by October 2012

In 2012 the next stage in the Internet’s revolution begins with the arrival of new top level domains (TLDs) such as .sfo, .berlin, .nyc, .web, .eco, .shop, .gay, .x-x-x, .hotel, .film, .radio, .green, .site, .sport and .music. ICANN, the organization in charge of domain names, is planning a dramatic rewriting of the rules for web [...]
[PHP] How To Parse Youtube URL to Get Video ID, Thumbnail Image, or Embed Code
![[PHP] How To Parse Youtube URL to Get Video ID, Thumbnail Image, or Embed Code](http://img.takien.com/2011/05/youtube-screenshot-150x150.jpg)
Hello, sometime we need to parse Youtube URL to get video ID, thumbnail image, or embed code automatically with PHP. To do so, I have created a function parse_youtube_url(); With this function we can: – Get video ID – Get Embed code – Get Thumbnail or HQ Thumbnail URL Check this out:
