Using UTF8 charset in DotKernel

This post refers to DotKernel 1, based on Zend Framework 1. If you are looking for DotKernel 3 related posts, go here. In order to use UTF8 encoding in your DotKernel based system, is needed to make some changes in … 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 related posts, go here. From time to time, it may be a good idea to have a persistent connection to database. The … 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 related posts, go here. On one of our recent projects that used WURFL, response time was an important factor. Profiling revealed that … 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 related posts, go here. We found a strange behaviour of sessions in one of our project, running DotKernel version 1.5.0 Similar to … 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 related posts, go here. In /var/www/vhosts/exampledomain.com/conf/vhost.conf file add this code: AuthType Basic AuthName “My Site Admin” AuthUserFile /var/www/vhosts/exampledomain.com/conf/.htpasswd Require … 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

SVN Export in a virtual host

The following commands should be run in the terminal (for example, using Putty in Windows) on the host where you want to export the repository). It’s recommended that you run them using the domain’s user, not root. … Read More

Aptana – set SVN keywords

In Aptana it’s very simple to set the svn:keywords property for a file. For example if you want to set the svn keyword property Id: … Read More