Static vs Non-static methods in PHP: what is faster?

Posted by Stanislav Furman on May 5, 2014
What is faster? Comparison of static and non-static class methods in PHP.

Apple has iWatch already in production, report says

Posted by Stanislav Furman on April 30, 2014

Apple has iWatch already in production, report says

According to China Times Apple has already started produciton of the long-rumored wearable computer watch known as the iWatch.

Apple has never officially announced a new wearable device characteristics. However, the company's CEO Tim Cook hinted that it would not be similar to "smart glasses" idea. According to media reports, the device will be have the look of an average dimension bracelet width of with color touchscreen.

It's been said that IWatch release was scheduled for the summer 2014, so it is more-llikely that some of the components for the gadget are ready. Components are typical for various devices such as MP3-players. However, this information is not sufficient to predict the shape of the future gadget.


Regular expressions? What's that?

Posted by Stanislav Furman on April 29, 2014

Apparently, the person who wrote this code has never heard about regular expressions. :)

<?php
$find = str_replace(",", "", $find);
$find = str_replace(".", "", $find);
$find = str_replace("/", "", $find);
$find = str_replace(" ", "", $find);
$find = str_replace("-", "", $find);
$find = str_replace("+", "", $find);
$find = str_replace("#", "", $find);
?>

Please, never repeat this! :)


IE users risk having their computers hacked and taken over

Posted by Stanislav Furman on April 28, 2014
Microsoft has announced that Internet Explorer users are are all vulnerable to a glitch

Unix shell commands to detect a DDoS attack and its source

Posted by Stanislav Furman on April 25, 2014
5 Unix shell commands to check if your server is under DDoS attack and its source

This password is already in use. Old school security fail.

Posted by Stanislav Furman on April 23, 2014
Old school security fail.

RIP Nokia? Microsoft renames Nokia to Microsoft Mobile

Posted by Stanislav Furman on April 21, 2014
Bye-bye, Nokia! Hello, Microsoft Mobile! The end of Nokia?

What Is the Heartbleed Encryption Bug?

Posted by Stanislav Furman on April 11, 2014

Redis: How to delete keys matching a pattern

Posted by Stanislav Furman on April 10, 2014
How to delete keys matching a wildcard pattern in Redis

Backward version compatibility in PHP web application

Posted by Stanislav Furman on February 17, 2014
How to handle backward PHP version compatibility in your web application