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

WURFL PHP API license incompatible with DotKernel

This post refers to DotKernel 1, based on Zend Framework 1. If you are looking for DotKernel 3 related posts, go here. We integrated long time ago the WURFL PHP API into DotKernel code base. At that time, the license … Read MoreRead More

Intro to jQuery

Starting with the 1.5 release, DotKernel will make the switch from Dojo to jQuery. On jQuery’s website, there’s an excellent “Getting started with jQuery tutorial“, as well as a extensive documentation for the framework, so I’ll just go over a … Read MoreRead More

Zend Registry usage 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 DotKernel, Zend_Registry will contain the following variables: startTime – the result of microtime() at the beginning of the request configuration … Read MoreRead 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

PHP 5.3.6 released. No upgrade possible for WampServer.

PHP 5.3.6 was released, but it come with a bad news for WampServer users: “Windows users: please mind that we do no longer provide builds created with Visual Studio C++ 6” Since WampServer is built using VC++ 6,  is not … Read More

htaccess 301 redirect non-www to www

To always redirect users to the www site (for example: http://dotboost.com to http://www.dotboost.com), add the following lines to .htaccess, right after RewriteEngine On: RewriteCond %{HTTP_HOST} ^dotboost.com [NC] RewriteRule ^(.*)$ http://www.dotboost.com/$1 [L,R=301] … Read More

Disable Wurfl redirect for mobile browsers

This post refers to DotKernel 1, based on Zend Framework 1. If you are looking for DotKernel 3 related posts, go here. DotKernel has an example mobile site at http://v1.dotkernel.net/mobile that uses jQuery Mobile. Wurfl is also used to detect … Read MoreRead More

DotKernel 1.3.2 release

This post refers to DotKernel 1, based on Zend Framework 1. If you are looking for DotKernel 3 related posts, go here. Before the winter holiday we came with a new release: DotKernel 1.3.2 It contains many bug fixes, some … Read MoreRead More