Segmentation failed with PHP, Magento and PDO

In Magento, MySQL, PHP on March 13th, 2014

The script fails with “Segmentation failed” error. I spent hours to debug this problem and found that some problem during inserting data into `catalog_product_entity_text`.


phpize – compiling shared PECL extensions

In PHP, Server on October 23rd, 2013

To my note – how to use phpize to compile and install PECL extensions for PHP


Connecting Remote Secure SQL Server from Apache/PHP using freeTDS and ssh tunnel

In Mac, PHP, Server on May 7th, 2013

Connecting remote SQL Server (secure behind FW) from LAMP (or MAMP) stack. My db server called db_server was located remotely. Access to db_server was restricted to another server, mid_server. I need to connect db_server from localhost via mid_server.


TCPDF – HTML to PDF conversion, encoding problem for extended chars

In PHP on May 26th, 2011

TCPDF is a-little-great HTML to PDF conversion PHP library. One of main problem, I (and lot others) had encountered displaying extended characters (like European). To resolve this, you need set $unicode parameter false and pass $encoding parameter other character set. Most of given example comes with, $unicode=true and $encoding=’UTF-8′. Below different examples: Default for UTF-8 […]