PHP: days/hours between two dates/datetimes

Use simple PHP functions to calculate time difference between two dates or datetimes. In last code snippet I'll show how to retrieve list of all days in given interval. Read More

MySQL Concat NULL columns

When you want to combine values of multiple columns, CONCAT function comes to help. It's very straightforward until one of the columns can contain NULL values. Read More

Joomla stop fake spam registrations

User system is one of many cool Joomla CMS features. Unfortunately it's often exploited by spammers who will create fake accounts in order to advertise their websites or create very malicious scripts on your server.…

PHP: maximum array length (size)

Arrays are great way to store and manipulate data. But how big array can be? While there aren't any limitations from PHP side, your server's memory will limit size of array. Read More