Hosting CodeIgniter inside a sub directory with Nginx

 As I mentioned in my previous post, I had been setting up an old Codeigniter web app today in my local machine. This app was hosted with the Apache web server and it was running on PHP 5.6.I tried to put this in a VM in my local machine using Vagrant. However, I faced some...

Fix - CodeIgniter session not set with PHP 7.x

Today I had to do some updates to an old web app I made with CodeIgniter. The original app was made around 5 years back and there has been no changes to it until this one. All this time it was living in one of my old web servers with PHP 5.6 and had no issues at all. However, when...

Pretty print Curl JSON responses in terminal

Today I wanted to test one of my APIs and used curl to get the response in the terminal. The output wasn't clear at all because it usually returns everything in one line.   Fortunately, there was a way to pretty-print the response, as in real json format. All you have...