Hello, I'm Erwin. I'm a Web Developer.
See my little experiences on my blog.

Integrated Tag Cloud Into Code Igniter

Posted: March 2nd, 2010 | Author: erwin | Filed under: PHP | Tags: , | No Comments »

This post talk about Tag Cloud on my previous post, but in this post I’ll show you how to integrate it into Code Igniter >> my favorite framework..

First you must create it to your own library.

this is my script:
Read the rest of this entry »


Tag Cloud With PHP

Posted: March 2nd, 2010 | Author: erwin | Filed under: PHP | Tags: | No Comments »

I think Wordpress blogger familiar with Tag Cloud. Last time, I want to know how to make it. Looking for some tutorial and found it. In this tutorial, I must learn about OOP in PHP. With my little knowledge about OOP programing in JAVA, I tried to explore it in PHP.

To make simple tag cloud with PHP you’ll need 2 PHP file. With OOP background you must create Tag Cloud Class first then you can use it to create new Tag Cloud object.
Read the rest of this entry »


Create User Log

Posted: March 2nd, 2010 | Author: erwin | Filed under: PHP | Tags: | No Comments »

User log is used to save information about visitor, like IP address and web browser. User log saved in html file. So you don’t need databases like MySQL. In this user log script, we need date() function (to set time) and variable like $REMOTE_ADDR to get IP address from user and $HTTP_USER_AGENT to know web browser in user. Usually this script must be place in index of web site (index.php). Then you need to created log.html file to save user log. Read the rest of this entry »


Dynamically Dropdown Value On Code Igniter

Posted: March 2nd, 2010 | Author: erwin | Filed under: PHP | Tags: , | No Comments »

One day, I got problem with dynamically dropdown value on Code Igniter. First think i hope I can generate dropdown with values from mySql database. I want to use form helper that provided by Code Igniter to generate form.

Basically to make dropdown input on controller are:

...
$data['input_category'] = array(
"1" => "Mobile",
"2" => "Web"
);
...

Then in views: Read the rest of this entry »


Clean Up Ubuntu Grub Menu After Upgrade Kernel

Posted: March 2nd, 2010 | Author: erwin | Filed under: Ubuntu | Tags: | No Comments »

When you upgrade kernel on ubuntu, you will add grub menu with new kernel version.

Ubuntu doesn’t remove the old entries. It’s very dirty. Why Ubuntu do this? How to remove it.. Hmm.. after several time browsing to find the solution…I found the best solution for me.

This is my Grub menu after upgrade kernel:

The best way to remove the older menu, you’ll need to edit the file /boot/grub/menu.lst. You can do this by using Alt+F2 and then typing in the following command:

gksu gedit /boot/grub/menu.lst

Read the rest of this entry »