Remove duplicate items in multi-dimension array in PHP

Posted: 9 years ago in  PHP

In PHP, array_unique only applied to signle dimension array View more

Increase file-size limit with Wordpress-Nginx-PHP-FPM

Posted: 9 years ago in  Unix PHP Wordpress

In CentOS with PHP-FPM and Nginx, to change file-size limit, the configuration differ slightly from which in Ubuntu with mod PHP for Apache (libapache2-mod-php5/php5) and Apache. View more

Add custom attribute to customer address then use it when creating order in Magento

Posted: 9 years ago in  Magento MySQL PHP

In Magento, one customer has 2 default address, one for billing and one for shipping address. The information seem to fit most general address over the world. However, in some countries, the address structure is more complicated View more

Change media upload folder of attachment based on post type/custom post type in Wordpress

Posted: 9 years ago in  Wordpress PHP

In Wordpress, media files as images will be stored in wp-content/uploads. For website with many posts (create custom post type) / image size (create custom image size), number of images will grow up quickly and it will slow down the page load due to file lookup. View more

Customize the design of PDF invoice in Magento

Posted: 9 years ago in  PHP Magento

Generate PDF Invoice is one magento's feature. It use Zend PDF library to generate invoice. As email template, we can customize it for our purposes like adding in more informatio / redesign color and text style or logo View more