Web Developer Zone
Web Developer Zone is a code first section devoted to tools and techniques used in web development. Thematically, the main focus here is on PHP, Linux, BASH, JavaScript and a little bit of MySQL and Python.
Pick of the week

Setting home and siteurl dynamically in Wordpress
10 Dec 2016 09:44:06
Article on how to leverage WordPress hooks to set home and site_url dynamically.
Popular

06 Sep 2017 23:04:22
Mapping numeric score to feedback message in PHP
Article on mapping a numeric or percent score to a feedback message with code examples in PHP programming language.

21 Dec 2016 11:07:56
Genericons unicode values
List of Unicode code points for Genericons vector icon set and a BASH script that finds the codes.

03 Aug 2020 00:39:31
Piping JSON object to PHP script
Article about how to pass data from a shell to a PHP script with a pipe on the command line or directly using PHP system function.

14 Jul 2020 11:08:06
Recursively updating deeply nested arrays in PHP
An article on recursively updating deeply nested arrays using array_walk_recursive and custom nested array traversal function in PHP.

28 Jan 2022 12:34:11

18 Jul 2020 00:39:07
Transforming range of variable to 0 to 1 and custom ranges
Learn how to transform variable's range to [0,1] or a custom range.
Recent

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 ...

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 ...

01 Aug 2020 16:35:27
cURL over HTTPS - web mailbox authentication and data access
CURL is one of these killer command line tools, which are as good today, in the age of ever more ubiquitous JavaScript and APIs as they were years ago, in gone-by times when a simple GET or POST HTTP request would have done what it takes. It is a transport tool, which ...

28 Jul 2020 00:28:15
Turning OOP class to graph for better code composition and understanding
Comprehending code is often a hard and time-consuming task. It becomes even harder when a piece of code your are dealing with is a large class with a sizeable number of properties and methods. Level complexity grows even further when object based on a class starts calling ...
SWWW

SWWW is my place on the web where I write on stuff related to web development. Main focus here is on my own programs and scripts, but also websites I have developed over years or helped develop, improve or maintain. In the Web Developer Zone I take a closer look at various solutions related to web development and computer programming.
If you find any of my projects interesting, useful or would like to know more on it, do let me know. This website has a contact form. Altenatively, you can leave a comment under an article on the blog.
Need a web developer?

If you need a web developer for web development work drop me a line!
I am based in Wakefield, UK, but always happy to consider remote work opportunities.