How to connect to Azure SQL Server with PHP

This article demonstrates how to use PHP to connect to an Azure SQL database. To connect to an Azure SQL or Any SQL server using PHP, you should install the required drivers based on your operating system. i.e you have […]

How to Remove Duplicates from JavaScript Array

You can use the JavaScript built in object Set to keep unique values of any type. You can make use of Set to remove duplicate entries from a JavaScript array. Here is how the code looks let technologies = [‘JS’,’PHP’,’Ruby’,’Node’,’Python’,’PHP’,’JS’] […]

API Caching with Redis and Node.js

In this post, I would like to show you, how we can use Redis to Cache APIs response to avoid multiple hits to the API. Same technique you can use to avoid multiple database calls ..etc We gonna create the express.js application […]

How to fetch data from a remote API in React.js

In this post, I will show you fetching data from a remote source inside your React.js application. So let’s create a brand new React project with  Initialize a React project $ npx create-react-app todos $ cd todos […]

How to create an SSH shortcut

In this post, I would like to show you a quick way to SSH into VMs. Using this approach you don’t have to type  ssh -i ..etc every time.  Let’s open your ~/.ssh file and create a file called config and […]

How to deploy slim framework on CPanel

In this post, I would like to show you deploying your slim framework project to CPanel (without SSH access). In general, for CPanel, the web root directory will be  public_html directory.  Slim3 Framework Authorization […]

How to get last inserted id in Laravel

In this post, I would like to show the different ways to get last inserted ID from the database table when working with Laravel PHP Framework. In the core PHP, we will get last inserted ID with mysqli_insert_id() or PDO::lastInsertId() […]

How to get Mysql Table Comments

Let’s assume that we have a table with the following table schema: CREATE TABLE employee ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT ‘The primary key for employee’, name varchar(50) NOT NULL […]

Merging PDFs using PHP and ghostscript

In this post, We will show you how you can use Ghostscript with PHP to merge multiple PDF files into single file. Using Ghostscript, it is possible to merge multiple PDF files into a single PDF file with a single command […]

How to use Twilio to send SMS with CodeIgniter

In this post, I would like to show using of Twilio library within your CodeIgniter 3 project. Twilio is cloud communications platform for building SMS, Voice & Messaging applications. Here are the steps to send SMS […]

How to list all globally installed NPM packages

Below is the npm command to view globally installed NPM packages. If you want to view current directory’s packages just execute the same command without the -g option. $ npm list -g –depth=0 list -g: display a […]

How to disable IPv6 on Ubuntu

In this post, I will show you disabling IPv6 on your Ubuntu machine. Before going further, let’s check the current status of the IPv6 on your machine. To check the status, open up the terminal and enter the following […]

How to insert data into database with CodeIgniter

In this post, I will show inserting data into database table using CodeIgniter. We gonna use CodeIgniter Active Records Pattern. This pattern allows information to be retrieved, inserted, and updated in your database with […]

DMCA.com Protection Status