Having a collection of php libraries in one places will help you get your job done faster. It help me, so I share my list. I’ll keep update the list with more libraries.
October 8th, 2009 | Del.icio.us | Digg | Stumble | Comments(13)
Having a collection of php libraries in one places will help you get your job done faster. It help me, so I share my list. I’ll keep update the list with more libraries.
October 8th, 2009 | Del.icio.us | Digg | Stumble | Comments(13)
Most users nowadays familiar with AJAX, well they don’t really know the term.
What users familiar is the experience, such as of submitting form without reloading the page.
So when you build new website or your web application, don’t forget to include this experience. But you also have to remember, there are some people who turn off their javascript or maybe the javascript failed to load. That is why, you should consider to use progressive enhancement.
In progressive enhancement, you can make your web application work in condition where no javascript available or failed, and enhance them if javascript available.
Lets just go with example, we’re building a form that will submit and reload to new page, but when javascript is available the form will be submitted via AJAX without reloading the page.
October 8th, 2009 | Del.icio.us | Digg | Stumble | Comments(3)
I write small CodeIgniter tutorial compilation, it’s not finished yet. Really like to have more feedbacks. Tweet me at http://twitter.com/komunitasweb
Thank you for your feedback.
October 6th, 2009 | Del.icio.us | Digg | Stumble | Comment(1)

If you need to show weather in your website, you can use weather widget such as weatherbug. It’s nice and simple, but maybe you need something more integrated with your website. So, take a look at Google Weather API.
http://www.google.com/ig/api?weather=[city name]
Example :
http://www.google.com/ig/api?weather=jakarta
It will give you xml data, and you can parse it easy in PHP. Take a look at sample code.
September 8th, 2009 | Del.icio.us | Digg | Stumble | Comments(11)
Sometimes you need to parse RSS from other website and integrate to your project. Well you can create your own library to parse that RSS, but before wasting your development time, please take a look these great libraries for parsing RSS.

SimplePie is a very fast and easy-to-use PHP class to parse RSS.
August 31st, 2009 | Del.icio.us | Digg | Stumble | Comments Off

After years use PHP, there is always a time where I find myself look back to PHP documentation.
PHP has many functions, if you’re new to PHP, you won’t note some of useful function to remember.
There are also some of technique that you couldn’t learn by just looking PHP documentation.
For a beginner, who just learning basic PHP programming, I have collect some of tips and trick to help you upgrade your skill.
April 6th, 2009 | Del.icio.us | Digg | Stumble | Comments(6)

If you familiar with CodeIgniter, then you have realized by now that you can’t have relationship manager.
Yes, CodeIgniter doesn’t have built-in ORM. But there are several projects such as IgnitedRecord and DataMapper that will help you manage relationship between your models.
In this tutorial, I will introduce you to DataMapper.
From DataMapper Website
DataMapper is an Object Relational Mapper written in PHP for CodeIgniter. It is designed to map your Database tables into easy to work with objects, fully aware of the relationships between each other.
Features
Ok let’s start our journey.
April 2nd, 2009 | Del.icio.us | Digg | Stumble | Comments(13)
In this tutorials, I’ll show you everything you need to know to get started with CakePHP ACL. First you need to know what is ACL, and how ACL is implemented in CakePHP. Are you ready?
ACL or Access Control List is security concept about permission. It’s contain a list of permission to access some of resources. It specify who and what is allowed to access something.
In CakePHP ACL is used to specify users access to a controller, or specific action of a controller. Before we get to the how to section, there are a few terms we have to understand first.
‘acos’ and ‘aros’ table is created automatically when you initialize the DB Acl tables (we’ll get into this later in how to part). Along with those table, there is table called ‘aros_acos’ which specify relationship between ARO and ACO. In english it will be mean which user has permission to a controller or action of controller.
Continue reading »
March 24th, 2009 | Del.icio.us | Digg | Stumble | Comments(12)
Do you like CodeIgniter? Here a CodeIgniter round up collection to help you get started with this framework.
Need more advanced tutorials? Fine, we have here.
Continue reading »
March 20th, 2009 | Del.icio.us | Digg | Stumble | Comment(1)
When I type this, google for ‘php tutorial’ result 8,950,000 pages. Yes, there are tons of great tutorial about PHP. But when you’re a beginner, it will make you confuse what tutorials you should read. Either it’s too complicated or just waste your time.
So, here the shortcut. Take it and be a better PHP programmer by tomorrow. Hmm, maybe not that fast. But here they are.
March 19th, 2009 | Del.icio.us | Digg | Stumble | Comments(21)

Let’s take a look at our to do list application.
By now, you have familiarize your self with CodeIgniter framework. It is take a while to know everything, but if you keep learning then someday you will get there.
If you have completed last tutorial, then you have a to do list application based on CodeIgniter framework. It’s not complete, but at least working.
But if there is something you don’t understand, you could stop by, give a comment or ask me. Or maybe you want to correct me. That’s fine. We all learning here.
Let’s go build another features.
Continue reading »
March 18th, 2009 | Del.icio.us | Digg | Stumble | Comments(2)
Latest update Email validation seems quite tricky. Do you have a better solution? Let’s have email validation challenge. And give the user the best way to validate an email format.
Mastering regex or regular expression is one advantages for you as programmer, but not everyone has time to learn something.
Not knowing how regex works doesn’t mean you couldn’t use the power of regex in your project.
Bookmark this list, so you can always going back here whenever you need this regex recipes.
Update :
Never though, my post will reach so many people, and cause so many reaction. But thank you to everyone, as I myself learn from my mistake.
Some credit goes to Joey Sochacki as I did use and modify some of his regular expression.
March 18th, 2009 | Del.icio.us | Digg | Stumble | Comments(23)
You’re in the middle of a project, and need to get everything done as soon as possible. To keep the deadline and still have a life, you would better to collect this awesome library on your fingertip. By knowing this library capability, then you’ll know when to use any of them.
You can create simple graph or chart using GD library on PHP, but to help you create more complex chart, then you’ll need this awesome library.
March 17th, 2009 | Del.icio.us | Digg | Stumble | Comments(16)

Let’s continue our journey with CodeIgniter, last time we built a simple to do list application. It is so simple and only have 1 feature, list your to do list.
But wait, right now we’ll add more power to this application. We will go step by step in this tutorial.
The to do list application are meaningless if we could not add new one. So let’s go upgrade it.
So, ready to open your favourite editor? Here we go.
March 17th, 2009 | Del.icio.us | Digg | Stumble | Comment(1)
CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. If you’re a developer who lives in the real world of shared hosting accounts and clients with deadlines, and if you’re tired of ponderously large and thoroughly undocumented frameworks
CodeIgniter has an excellent documentation. It’s really help you in getting started. If you new to CodeIgniter, you can start by reading the user guide or read this excellent article Everything You Need to Get Started With CodeIgniter.
If you’re ready with your CodeIgniter, now we will create complete application using codeigniter. Building to do list in CodeIgniter. Let’s get started.
Continue reading »
March 15th, 2009 | Del.icio.us | Digg | Stumble | Comments(7)
In Django template you can’t mix programming logic into template, and this is by the design, because basically template is meant to express presentation. But of course, Django template provide something called tags which function similarly to some programming constructs. Now let’s go through some real example how Django template work.
In Django template we use {{ variable }} to express variable.
1 2 3 4 5 6 | <html> <head><title>{{ page.title }}</title></head> <body> {{ page.body }} </body> </html> |
To loop over array or list we use for tag
1 2 3 4 5 6 7 8 9 | <html> <head><title>{{ page.title }}</title></head> <body> {% for news in news_list %} <h2>{{ news.title }}</h2> <p>{{ news.content }}</p> {% endfor %} </body> </html> |
And to simulate selection, Django template provide if tag
1 2 3 4 5 6 7 8 | <html> <head><title>{{ page.title }}</title></head> <body> {% if message %} {{ message }} {% endif %} </body> </html> |
March 8th, 2009 | Del.icio.us | Digg | Stumble | Comments(2)
My friend : Is it possible to use PHP and GD for croping image not in rectangle?
Me : Hmm, well so far I just play with GD only for creating thumbnail or crop an image. What exactly do you mean by that?
My friend : I need to crop an image and need the result in ellipse, so there will be an ellipse showing part of the image, and outside that ellipse should be transparent.
Me : What do you need that for?
My friend : Hmm, well just for some project I’m currently handle.
Me : I promise you nothing, but I’ll give it a shoot. Continue reading »
February 12th, 2009 | Del.icio.us | Digg | Stumble | Comments(2)
February 11th, 2009 | Del.icio.us | Digg | Stumble | Comments Off
Yes, this is another cakephp on ubuntu. Most of them were not detail enough for beginners. So here I am and here is my version of installing cakephp on ubuntu. Continue reading »
February 10th, 2009 | Del.icio.us | Digg | Stumble | Comments Off