Forcing UTF8 connections and character set in MySQL

In some situations, it may be neccesar to force MySQL server collation and character set to UTF8. As you can’t control all scripts that are connecting to your database( for instance: mysql command line, or mysqldump) For that , open … Read More

Commitment to PHP – new Zend Certified Engineers – ZCE – in our team

Another 2 of our team members passed the ZCE exam. Now we are 5 🙂 That mean we are really taking PHP  into serious , and at least we have good technical skills. Zend Yellow Pages

Using UTF8 charset in DotKernel

This post refers to DotKernel 1, based on Zend Framework 1. If you are looking for DotKernel 3 or above related posts, go here. In order to use UTF8 encoding in your DotKernel based system, is needed to make some … Read MoreRead More

How to Set a Persistent Connection to Database with Zend Framework Zend_Db adapter

This post refers to DotKernel 1, based on Zend Framework 1. If you are looking for DotKernel 3 or above related posts, go here. From time to time, it may be a good idea to have a persistent connection to … Read More

Remote connections to MySQL server on Plesk based servers

By default, MySql servers on Linux machines where Plesk is installed, have the old_passwords=1 or ON flag. That mean even if you have MySQL 5.5+ version, it still use old style of password storage, pre-mysql 4.1+ If you try to … Read MoreRead More

Adding a second caching layer to WURFL in Dotkernel using APC

This post refers to DotKernel 1, based on Zend Framework 1. If you are looking for DotKernel 3 or above related posts, go here. On one of our recent projects that used WURFL, response time was an important factor. Profiling … Read MoreRead More

Zend Server 5.5 Quick Setup on Windows

In order to make  usable a fresh installation of Zend Server 5.5.0 on Windows 7, and be ready for development , few quick steps are required: … Read More

Zend_Session usage in DotKernel – Refactor of Dot_Session class

This post refers to DotKernel 1, based on Zend Framework 1. If you are looking for DotKernel 3 or above related posts, go here. We found a strange behaviour of sessions in one of our project, running DotKernel version 1.5.0 … Read MoreRead More

Protecting admin folder with .htaccess in Plesk

This post refers to DotKernel 1, based on Zend Framework 1. If you are looking for DotKernel 3 or above related posts, go here. In /var/www/vhosts/exampledomain.com/conf/vhost.conf file add this code: AuthType Basic AuthName “My Site Admin” AuthUserFile … Read More

Golden Rules of Professional PHP Coding

1.  Always use in development and in staging highest error reporting level, and display_errors ON: error_reporting(-1); ini_set(‘display_errors’, 1); 2. Fix every warning or notice that occur. 3. Check regularly server’s error_log for notices/warnings 4. Identify any temporary hack with a … Read More