Articles:



New PHP version - v5.5

IT News & Other

In 20-Jun-2013 the PHP development team announced release of PHP 5.5.0

Compared to the previous version I could say that PHP v5.5 it does not come with any major changes, but like other major version has few significant changes like finally keyword in try catch structure or depreciation of the mysql_* functions.

Read More

Aspect-oriented programming & PHP

Other
Aspect-oriented programming & PHP

Aspect-oriented programming (AOP) is a programming paradigm that allow to increase modularity by provide better options regarding the separation of cross-cutting concerns.

PHP currently hasn't native support for AOP, but from PHP v5.4 are at least are few solutions provided by community that can support AOP usage in PHP.

Read More

Five tips about how to find a better job?

IT News & Other
Five tips about how to find a better job?

Job hunting can be challenging. Sometimes you might feel stuck in this process of trying the same things over and over. Below are a few tactics that might give you a kick-start regarding job search and move you from unemployed to hired, or from current job to a better one!

Also keep in mind, the key to a good job search strategy is to diversify your approach.

Read More

Developer tools - a short list

IT News & Other

In order to be efficient, any developer need to use good tools. In this article you can find a short list of tools used in programming, especially web programming.

Basiclly in a developing process at least this types of tools are used: an IDE, version controll software, relational database management system (RDBMS), a webserver (for the web application only) and of course beside the tools the programming/scripting language.

Read More

Concrete5 a CMS easy to use, suitable for small and medium websites!

Other
Concrete5 a CMS easy to use, suitable for small and medium websites!

Concrete5 is a relative new CMS on the market, written in PHP and even if first beginnings are somewhere in 2003, only from 2012 was started to be updated with regularity

From the beginning was design to be very user friendly CMS, to require small level of knowledge in order to be able to use it

Read More

PHP coding standards

Other
PHP coding standards

Coding standards are very important in any programming language. Until now was developed all kinds of coding standard conventions by major php application communities like Zend, Symfony, Drupal and so on. But PHP as language had no any type of standard regarding coding style.

 

Read More

PHP countdown timer

Other
PHP countdown timer

I had to made ​​a few days ago, a php countdown timer, which runs from the command line, for educational purposes.

Script receive as input a number of seconds that converts then in days, hours, minutes, seconds, and display time. If receive another parameter t after display time it starts to countdown.

Read More

Url encoding

Other

URL(s) can only be sent over the Internet using the ASCII character-set. Often especial when we generate when automatically generating url(s) we need to make sure that contains only ASCII character-set

To ensure that our url(s) contain all the time only allowed characters we can encode url(s). For this PHP has few handy functions (like urlencode, rawurlencode) that make all work for us.

Read More

How to lock a product attribute in backend

Magento

Sometimes, for example when products are imported/updated in magento database by outside process, we not want that magento admin user to be able to change some attributes, like sku for example that could interfere with that process.

For acomplish this we can lock any product attribute by using lockAttribure method located in Mage_Catalog_Model_Abstract class.

Read More

Get User IP Address

Other

The simplest way to get ip address of is to use server variable $_SERVER['REMOTE_ADDR']. Ip address of user can be used for logging, statistics, geo-targeting or ban systems.

Anyway sometimes $_SERVER['REMOTE_ADDR']. is not real IP address, when user for example using a proxy. So for more accurate detection of user IP address we need a little bit more code.

Read More