English Brazilian Portuguese

Ten Practical Uses for QR Codes

26/10/2010

Business Cards - A QR Code on the back of your business card is not only eyecatching but also it can contain all your details in VCard or mecard format and a person can update all your detailsto their phonebook with one scan. Clothing Labels - You are in a store and you see an item of clothing and you would like to know more information aboutit, where it came from, what type of material and what...

Tags: Designer QR Codes QR Code Tips and Tricks

Continue reading...

Multiple Inheritance in PHP - a workaround

27/08/2010

It is well known that PHP doesn't offer multiple inheritance, instead it provides interfaces. Altough the interfaces are something very good they can not fully replace the multiple inheritance. Of course some people voice opinions that if you need multiple inheritance then the design of the application is wrong - this will not be covered here. Instead we will investigate what are the...

Tags: How to... PHP 5.3 PHP General Tips and Tricks

Continue reading...

New objects and value assignment

17/08/2010

In PHP 4 was possible the constructor to return a value (different from the object). Here is a simple example how this would work in PHP 4: Of course this does not work in PHP 5.3 - first it will throw an error on the $this assignment, second - in PHP 5.3 the new operator always returns an object. In PHP 5 the constructor can be interrupted by throwing an exception and this will prevent the...

Tags: PHP General Tips and Tricks

Continue reading...