Helping make the web work for everyone. Welcome to my website. My name is Sylwester Wojnowski and I help individuals and organisations achieve presence on the web.

Blog // Pick of the week

Checking trees for sameness with recursion and spaceship operator in PHP

Checking trees for sameness with recursion and spaceship operator in PHP

16 Jul 2020 14:51:53


Learn how to check whether two trees are the same using a recursive algorithm or the spaceship operator in PHP.


Read full article »

Blog // Recent Posts

Mapping associative array keys to variables with $$ in PHP

20 May 2021 17:49:23

Mapping associative array keys to variables with $$ in PHP

Have you ever tried to map an associative array to variables in such a way, that each newly initialized variable has a name which corresponds to a key in the array and is assigned a value which is found under the key in the array? If you can map array keys and values to ...

Read more »

Switching from Mcrypt to OpenSSL engine in Kohana application

18 Mar 2021 20:02:19

Switching from Mcrypt to OpenSSL engine in Kohana application

Is there anyone who still develops with Kohana these days? I do not thinks so ... Hold on a second! I'm one of those dinosaurs! Actually, to be more strict on this, I'm maintaining a few web applications, that have been written using this, once having very good ...

Read more »

Developing for browser with mocha, chai and window node modules

04 Aug 2020 23:21:09

Developing for browser with mocha, chai and window node modules

Recently, when trying to write a bookmarklet for Firefox in JavaScript I faced a problem with testing DOM reliant operations in it. The bookmarklet was being written in Node environment and tested with Mocha and Chai. Since, node does not provide jsdom, I had to look for an ...

Read more »

Piping JSON object to PHP script

03 Aug 2020 00:39:31

Piping JSON object to PHP script

In this article I look at how to pass a string from a shell script to a PHP program. This problem shows up regularly to me when I make a HTTP request with curl on the command line and have to process response data returned by the utility, often JSON encoded data, using ...

Read more »