Blog

Latest Articles

PHP Development

Floating-Point Arithmetic - Why is (int)((0.7+0.1)*10) = 7 ?

This article applies to PHP 5.x but also to PHP 7 While using floating-point arithmetic you might have noticed that not all the calculus results are as expected, this can usually be observed when cast…

Read more →
Core Components

Avoid routing through bootstrap of non existent files

In some cases you may encounter missing files: images, css or js files. All those missing files are processed by the current bootstrap: index.

Read more →
Core Components

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 lin…

Read more →
Core Components

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.

Read more →
Javascript

Intro to jQuery

Starting with the 1.5 release, Dotkernel will make the switch from Dojo to jQuery.

Read more →
Best Practice

htaccess 301 redirect non-www to www

To always redirect users to the www site (for example: http://dotboost.com to http://www.

Read more →
Best Practice

Using LIKE wildcards with Zend_Db

Continuing the Zend_Db article series, let's discuss the LIKE condition. The LIKE condition allows you to use wildcards in the WHERE clause of an SQL statement.

Read more →
PHP Development

PHP Environment : Development Staging Production

In hosted software development, the environment refers to a server tier designated to a specific stage in a release process. The purpose of these environments is to improve the development, testing an…

Read more →
Best Practice

Why use CURRENT_TIMESTAMP on a field that record date/time?

On a TIMESTAMP field that records date and time when inserting a new record, it is encouraged to use as a DEFAULT value, the CURRENT_TIMESTAMP constant. Why? Because when inserting a new row in the ta…

Read more →
PHP Development

Protection against SQL Injection using PDO and Zend Framework - part 2

Following the preview article about SQL Injection, here is more - a strong argument why you should use Zend Framework for handling database access. Zend_Db is the primary class used for access the dat…

Read more →