How to Delete a File in Node JS

The following tutorial will describe how to delete files that you no longer need, deleting files using node js extremely simple with node js’s fs library. Note: There is no way of undoing deleted files, just keep […]

Creating a RESTful API with Express js, Node js/MySQl

Do you want to create a RESTful API with NodeJS/Express Js framework? Here is the tutorial, by reading this tutorial you can create our own REST api application server. Nowadays, it’s quite common to create web and […]

How to handle cookies in Express JS?

Cookies are very useful to store small piece of web application data and cookies are stored on the user’s computer by the user’s web browser while the user is browsing. Express uses the same methods, Cookies, […]

Custom Facade in Laravel 5.2?

In Laravel world, a facade is a class that provides access to an object from the container. Laravel “facades” serve as “static proxies” to underlying classes in the service container, providing […]

How to configure/load database in Slim Framework 3

Slim is a full-featured,open-source PHP micro framework that helps you quickly write simple yet powerful web applications and APIs. It comes with a sophisticated URL dispatcher and middleware architecture that makes it […]

How to determine the version of bash

In this post I would like to show you very trivial example, which will help you to find the version of the bash that your are running. The easiest way to determine the version of bash that you are using is to print the […]

How to generate excel from array using PHPExcel

This tutorial will describe usage of PHPExcel library to generate an Excel file from PHP array. Usage of PHPExcel library is very simple and easy. Just follow the below steps. 1. First thing first – Download PHPExcel […]

How to Convert a PDF to JPEG using PHP

Hey, Today I would like to show you how we can convert PDF to JPEG using imagick extension. Imagick is a native php extension to create and modify images using the ImageMagick API, which is mostly built-in in PHP installation […]

How to install Laravel 5

In this post I am going to share laravel installation steps. We Can install laravel by using composer and laravel installer. Laravel Installer is a new features which is introduced in Laravel 4.1, which can create a project […]

Check if an IP address is private with PHP?

This snippet will detect a private IP address using PHP’s built in filter library and It will return false if the IP address is private. FILTER_FLAG_IPV4 : Allows the IP address to be in IPv4 format. FILTER_FLAG_NO_PRIV_RANGE […]

Create and download CSV files using PHP

If you need to download a CSV file on the fly without writing to external file, than you need to open php://output stream and use fputcsv() on it. Built in fputcsv() will generate CSV lines from given array, so you will […]

Placeholder styling with CSS

By default, placeholder text in inputs has a light gray color(if the browsers support) and which appears in an input field until the user puts focus on the field. Placeholder text is like a hint or prompt to users as the […]

Genuine ways to stay motivated

Success and achievement has different meanings for different people. In the quest for money, good jobs, top positions and materialistic possessions, we sometimes forget where the journey began. If money is a means to an […]

How to check / uncheck all check boxes using jQuery?

You may have noticed select/deselect all functionality on websites like gmail.com, outlook.com or even in the wordpress admin dashboard basically which allows you to select all emails or posts on the page with single click. […]