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

12 Oct 2021 00:05:56
How to get a single validation rule from model in CodeIgniter 4?
Here is a little bit on how to get a single validation rule from a model in CodeIgniter 4. Why would you want to do a thing like this? Well, sometimes you want to validate only a single piece of input data, like for example a customer order code. In Codeigniter 4 validation ...

06 Oct 2021 23:09:12
How to load module helper in CodeIgniter 4?
A few words on how to load a custom helper function defined in a Codeigniter 4 module. Suppose you have a bunch of modules living in modules directory of your Codeigniter 4 project. The modules directory is registered in App/Config/Autoload.php using $psr4 property as follows: ...

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

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