Web Developer Zone
Pick of the week
Insertion Sort algorithm and sorting dates in PHP
03 May 2017 14:04:47
An article on sorting dates and times with insertion sort algorithm in PHP.
20 May 2021 17:49:23
Mapping associative array keys to variables with $$ in PHP
A neat trick to reduce amount of code needed to access data stored in PHP associative array.
04 Feb 2022 22:19:19
Performing inner and outer SQL joins in CodeIgniter 4
Performing inner and outer SQL joins using prepared queries and Query Builder class in CodeIgniter 4.
07 Apr 2022 00:55:48
MongoDB mongod server fails to start after installation and solution
MongoDB server not starting after installation due to missing dependencies and how to solve this problem.
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.
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.
27 Jan 2022 12:25:32
Creating URL-safe slugs in CodeIgniter 4
Build URL-secure slugs using URL and Text helper functions in CodeIgniter4
04 Feb 2022 00:47:56
Prepending an empty string key option to options array for form_dropdown function in CodeIgniter 4
A couple of sentences on how to prepend an options array, which contains numerical keys with a non-numerical key option for form_dropdown function in CodeIgniter 4. The option could be something like, '' => 'Choose ...' . One very good, probably the best, ...
02 Feb 2022 00:17:15
Adding, listing and dropping foreign keys in MySQL
This time a couple of words on how to add, list and drop foreign keys with ON CASCADE DELETE clause. What are foreign keys for? You define your foreign keys on tables to ensure integrity of your data. One particular case of this is a foreign key with ON CASCADE DELETE clause. ...
28 Jan 2022 21:39:38
Finding previous and next database table item with Query Builder in CodeIgniter 4
Imagine you have a database table Posts with items like blog posts, news and pages. Each of those items has its unique id and type like "page" or "news". Given an id of a database item, your goal is to find the previous and the next item of the same type ...
28 Jan 2022 12:34:11
Building a module for CodeIgniter 4
Once you are somewhat familiar with basics of CodeIgniter 4 and the MVC pattern it uses, it is time to move on to building modules for the framework. Modules are chunks of functionality you write once and reuse in your current and subsequent projects. Depending on your needs you ...
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.