[
webdev
php
bootstrap
]
15 Jun 2024
Without Google Fonts, our typography would be in limbo! Now, I’m neither a web designer nor have an eye for the pixel perfect and aesthetic design which a pro designer usually does. Instead, my usual workflow is to cobble together web components like bootstrap, jquery, codeigniter, etc. and try to...
Read More
[
php
webdev
wordpress
]
07 Jun 2024
I wanted to implement a comment hosting system for my static blog https://prahladyeri.github.io, just basic Wordpress.org style commenting feature with user’s name, website, etc., no complicated logins or sign-ups or third-party platforms. The user reads your blog, posts a comment, and you approve from the backend (or alternatively, it gets...
Read More
[
php
codeigniter
pdo
php-8
]
07 Jun 2024
PHP 8.x is filled with hidden land mines which can suddenly trip the unaware PHP coder, especially when porting from legacy frameworks like CodeIgniter or CakePHP to PHP 8.x systems. One such issue is PDO’s default exception handling method. Prior to PHP 8, PDO’s default exception handling mode was PDO::ERRMODE_SILENT...
Read More
[
php
webdev
]
01 Jun 2024
The usual way of installing composer packages with composer require <foo> is the standard. But occasionally, we might want to install the packages from our local computer to save Internet bandwidth or some other reason. Unlike Python’s pip, PHP’s composer doesn’t offer us a straightforward path to install from an...
Read More
[
php
webdev
]
29 May 2024
Routing is a tricky business in PHP simply because there is no one standard way of doing it. Starting from the most simple and benign (but inflexible) routing strategy of handling every incoming request in the index.php script to the highly flexible (but arcane and opinionated) routing libraries of Symfony,...
Read More
[
food
beverages
]
29 May 2024
Bangalore has a very pleasant and human friendly climate but it’s also very humid which often causes your crisp and powdered Bournvita to become a lump of stone like this one here: There are two ways of tackling this problem and recover your favorite beverage: The old school “brute force”...
Read More
[
php
codeigniter
]
27 May 2024
Running multi-queries (a bunch of text containing arbitrary DML/DDL statements) is highly unreliable and not an exact science in CodeIgniter or even PHP for that matter. The Internet is filled with posts like this, this, and this but you can’t depend on these solutions in most situations due to the...
Read More
[
web-hosting
domain-hosting
listicle
]
26 May 2024
After the recent demise of freenom.com, most webdev related subs and other forums on the Interwebs are very keen on this topic to somehow try and fill that void, find some alternatives. Being a PHP Freelancer, I often find the need for temporary domain names to experiment with and while...
Read More
[
android
]
10 Apr 2024
When you try to manually install an Android APK on your phone, you are typically stuck with an error similar to this: Stack Overflow is filled with posts like this, this and this one but apparently, there seems to be no consensus regarding the cause or even a generally accepted...
Read More
[
php
dompdf
]
05 Apr 2024
Generating PDF documents from your HTML output is a very common requirement and there are several open source libraries to accomplish this in PHP. I came across this need for my project recently and I evaluated many popular ones such as TCPDF, mpdf, FPDF, etc. But the one that truly...
Read More