A simple function to convert hexadecimal colors to RGB in php
Read this post on altafphp.blogspot.com