Arjun

Arjun

I am Arjun from Hyderabad (India). I have been working as a software engineer from the last 7+ years, and it is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.

Joined on September 16, 2014

UnZip Compressed Files using PowerShell

UnZip Compressed Files using PowerShell

The Microsoft.PowerShell.Archive module PowerShell has been introduced in PowerShell 5 and has Expand-Archive cmdlet. Expand-Archive cmdlet allows you to easily...

PowerShell - 4 days ago 1 minute read

How to remove all docker containers and images using PowerShell?

How to remove all docker containers and images using PowerShell?

The docker system prune command removes all stopped containers, dangling images, and unused networks and if we pass the --volumes...

PowerShell - 5 days ago 1 minute read

Automatically clean up docker on a windows machine?

Automatically clean up docker on a windows machine?

To remove all stopped containers, all unused networks, all dangling images, and build caches we will execute the docker prune...

PowerShell - 5 days ago 1 minute read

How to enable execution of PowerShell scripts?

How to enable execution of PowerShell scripts?

The PowerShell execution policy is default set to Restricted. You can change the PowerShell execution policies with the Set-ExecutionPolicy cmdlet....

PowerShell - 5 days ago 1 minute read

Fetch Data From Database In Descending In CodeIgniter

Fetch Data From Database In Descending In CodeIgniter

To fetch data in descending order from the database in CodeIgniter you need to use the order_by() along with get()...

codeigniter-code-snippets - 5 months ago 1 minute read

nullsafe operator - PHP 8

nullsafe operator - PHP 8

The nullsafe Operator allows a developer to eliminate the null check for each property before going onto the next chain...

php-mysql - 5 months ago 1 minute read

Custom Helper functions in Laravel

Custom Helper functions in Laravel

In this post, we gonna create custom functions and load it in the Laravel project. These functions can be accessible...

laravel - 5 months ago 1 minute read

Connect to Salesforce with Node.js

Connect to Salesforce with Node.js

In this post, we gonna make a connection to Salesforce with Node.js and we will update the Salesforce Objects. We...

node-js - 5 months ago 1 minute read

Generate a PDF from HTML with puppeteer

Generate a PDF from HTML with puppeteer

In this post, we gonna use Puppeteer to generate PDF files from HTML. With Puppeteer we can also generate screenshots....

express-js - 5 months ago 1 minute read

Remove Empty Array Elements and reindex in PHP

Remove Empty Array Elements and reindex in PHP

The built-in array_filter() function removes all the empty elements, zeros, false and null values from an array. This function uses...

php-mysql - 5 months ago 1 minute read

JavaScript - find And findIndex

JavaScript - find And findIndex

The Array.prototype.findIndex() and Array.prototype.find() methods are useful to search the provided array. The findIndex() method returns the index of the...

javascript - 5 months ago 1 minute read

JavaScript - Optional chaining (?.)

JavaScript - Optional chaining (?.)

Optional chaining allows you to safely access the nested object properties. In general, to access the nested object properties you...

javascript - 5 months ago 1 minute read

JavaScript - Nullish coalescing operator (??)

JavaScript - Nullish coalescing operator (??)

The nullish coalescing operator (??) is a logical operator that returns its right-hand side operand when its left-hand side operand...

javascript - 5 months ago 1 minute read

JavaScript - Logical assignment operators

JavaScript - Logical assignment operators

Logical assignment operators are new compound assignment operators that combine the logical operations &&, ||, or ?? with assignment x...

javascript - 5 months ago 1 minute read

Javascript - replaceAll

Javascript - replaceAll

String.prototype.replaceAll provides an easy way to replace all occurrences of a substring without creating a global RegExp. const queryString =...

javascript - 5 months ago 1 minute read

How to develop REST API with Deno

How to develop REST API with Deno

In this tutorial, we gonna use Attain to create REST API with Deno. Attain is a middleware web framework for...

deno - 5 months ago 1 minute read

Javascript - Promise.any

Javascript - Promise.any

Promise.any is a promise combinator that resolves the resulting promise as soon as one of the input promises is fulfilled....

javascript - 5 months ago 1 minute read

Laravel Notification - notify using only email address

Laravel Notification - notify using only email address

We can send On Demand Notifications using the Notification facade using an only email address. This is feature is available...

laravel-code-snippets - 5 months ago 1 minute read

How to use Lifecycle Management rules of Azure Blob

How to use Lifecycle Management rules of Azure Blob

Azure has a built-in feature to change the Access tier from Hot to Cool. Along with this feature, Azure has...

azure - 9 months ago 1 minute read

How to Integrate PayKun Payment Gateway in WordPress

How to Integrate PayKun Payment Gateway in WordPress

It is easy and hasslefree to integrate the WordPress websites with the available Plugins from PayKun Payment Gateway. With PayKun...

wordpress - 10 months ago 1 minute read

How to download YouTube live stream video in chunks

How to download YouTube live stream video in chunks

In this tutorial, we gonna download YouTube live stream video in chunks for the given interval. We gonna run few...

unixlinux - 10 months ago 1 minute read

Docker file for Express App with PM2

Docker file for Express App with PM2

FROM node:10 WORKDIR /usr/src/app COPY package*.json ./ RUN npm install pm2 -g RUN npm install COPY . . EXPOSE 8080...

javascript-jquery-snippets - 1 year ago 1 minute read

Node.js 12: Private Class Fields

Node.js 12: Private Class Fields

Javascript allows us to declare fields inside the class. We can access its own fields or properties by creating an...

javascript - 1 year ago 1 minute read

PHP 7.4 - Null coalescing assignment operator

PHP 7.4 - Null coalescing assignment operator

The null coalescing assignment operator is a shorthand for null coalescing operations. Let's take a example code $data['date'] = $data['date']...

php-mysql - 1 year ago 1 minute read

PHP 7.4 - Arrow functions

PHP 7.4 - Arrow functions

Arrow functions also called "short closures". We can always access the parent scope, there's no need for the use keyword....

php-mysql - 1 year ago 1 minute read

Eloquent - A better way to increment or decrements an int

Eloquent - A better way to increment or decrements an int

Laravel has in-built increment() and decrement() functions to increase or decrease a value of the column, by 1 or with...

laravel - 1 year ago 1 minute read

Difference between two date in JavaScript

Difference between two date in JavaScript

Let us see an example of how to calculate the difference between dates using Javascript. First, write an HTML code...

javascript-jquery-snippets - 1 year ago 1 minute read

Laravel Drop all tables

Laravel Drop all tables

This is useful for migrations when you can't rollback. It can easily be run in artisan mode or you can...

laravel-code-snippets - 1 year ago 1 minute read

PHP 7.4 - Numeric Literal Separator

PHP 7.4 - Numeric Literal Separator

PHP 7.4 allows for underscores to be used to visually separate numeric values. It looks like this: $unformattedNumber = 123456789.78;...

php-mysql - 1 year ago 1 minute read

How to Connect to SQL Server database using Python, pyodbc

How to Connect to SQL Server database using Python, pyodbc

In this post, we gonna use pyodbc package to connect to the SQL server using Python. So let's install the...

python - 1 year ago 1 minute read

How to deploy angular universal to production

How to deploy angular universal to production

This post will cover the step needed to take the angular universal app to the production server. This post assumes...

angular-2 - 1 year ago 1 minute read

Word document placeholder replacement with Node js

Word document placeholder replacement with Node js

In this post, we gonna see how we can use Docxtemplater library to replace placeholders in the Word Document in...

node-js - 1 year ago 1 minute read

How to Upload, download, remove Files to Amazon S3 Using Laravel

How to Upload, download, remove Files to Amazon S3 Using Laravel

Create a controller called UploadController.php with following code. <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; class UploadController extends Controller {...

laravel - 1 year ago 1 minute read

How to integrate sonar for a Node JS project?

How to integrate sonar for a Node JS project?

In this post I will show you SonarQube integration steps for Node based projects. SonarQube is an Open Source Software...

node-js - 1 year ago 1 minute read

How to use Datatables in Laravel 5.8

How to use Datatables in Laravel 5.8

In this tutorial, I will show you how to use the Datatables in the Laravel based project withyajra/laravel-datatables-oracle package. For...

laravel - 1 year ago 1 minute read

How to integrate the CardConnect payment with Node JS

How to integrate the CardConnect payment with Node JS

This tutorial shows how we can integrate the CardConnect payment gateway within your nodeJs based projects. We gonna use axios...

node-js - 1 year ago 1 minute read

Node js - Azure blob storage generate temporary public url for private file.

Node js - Azure blob storage generate temporary public url for private file.

This article demonstrates how to generate a temporary public URL to access a private file which resides inside the Azure...

node-js - 1 year ago 1 minute read

How to connect to Azure SQL Server with PHP

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...

php-mysql - 2 years ago 1 minute read

CodeIgniter 3 - Login

CodeIgniter 3 - Login

In this tutorial, I will show you creating a login system using CodeIgniter. To generate decent login form design we...

codeigniter - 2 years ago 1 minute read

Express js - Zip and download files

Express js - Zip and download files

const express = require('express') const app = express() const port = 9000 const AdmZip = require('adm-zip'); app.get('/', (req, res) =>...

express-js - 2 years ago 1 minute read

Node js - Download files from Azure Storage to local File system.

Node js - Download files from Azure Storage to local File system.

const azureStorage = require('azure-storage'); const path = require('path'); const azureStorageConfig = { accountName: "", accountKey: "", blobURL: "", containerName: ""...

node-js - 2 years ago 1 minute read

Express js - Upload images to Azure Blob Storage

Express js - Upload images to Azure Blob Storage

const express = require('express') const app = express() const port = 6000 const bodyParser = require('body-parser'); const multer = require('multer')...

express-js - 2 years ago 1 minute read

Express js upload and save base64 image into File System

Express js upload and save base64 image into File System

const express = require('express') const app = express() const port = 6000 const bodyParser = require('body-parser'); const fs = require('fs');...

express-js - 2 years ago 1 minute read

Login Form with ReactJS

Login Form with ReactJS

import React, { Component } from 'react'; import { Button, Form, FormGroup, Label, Input, Fade } from 'reactstrap'; import _...

react-js - 2 years ago 1 minute read

How to create a envelope in Docusign using Node Js

How to create a envelope in Docusign using Node Js

const axios = require('axios') const path = require('path') const fs = require('fs') const docusign = { accountID: 'your account id',...

node-js - 2 years ago 1 minute read

How to build APIs using hapi.js in Node.js

How to build APIs using hapi.js in Node.js

By reading this tutorial you can build RESTful APIs using Node, hapi.js, and Sequelize ORM. We gonna use the different...

node-js - 2 years ago 4 minute read

Merging PDFs using Nodejs and ghostscript

Merging PDFs using Nodejs and ghostscript

In this tutorial, We will show you how you can use Ghostscript with NodeJs to merge multiple PDF files into...

node-js - 2 years ago 1 minute read

How to SendGrid send email with node from terminal

How to SendGrid send email with node from terminal

In this post, I am gonna share code snippets which will trigger email along with file content to the given...

node-js - 2 years ago 1 minute read

Azure CSP - Partner Center authentication with Node JS

Azure CSP - Partner Center authentication with Node JS

In this post, I will show you Azure CSP partner center authentication with Node JS. We gonna use express JS...

express-js - 2 years ago 1 minute read

Send Email using SendGrid in Express.JS application

Send Email using SendGrid in Express.JS application

In this arti­cle, I will demon­strate a sim­ple exam­ple of send­ing emails using SendGrid in Express/ Node.js. Fortunately sending emails...

express-js - 2 years ago 1 minute read

How to create RESTful API in Laravel 5.7

How to create RESTful API in Laravel 5.7

In this tutorial, I will show you creating RESTful apis using Laravel 5.7 php framework. We gonna use the Laravel's...

laravel - 2 years ago 2 minute read

How to Remove Duplicates from JavaScript Array

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...

javascript - 2 years ago 1 minute read

Implement role based access control, JWT, Express.js , Node.js

Implement role based access control, JWT, Express.js , Node.js

In this post, We gonna build an access control layer using express-jwt-permissions for express based application. ACL will keep users...

express-js - 2 years ago 1 minute read

API Caching with Redis and Node.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...

express-js - 2 years ago 1 minute read

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

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...

react-js - 2 years ago 1 minute read

How to create an SSH shortcut

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...

unixlinux - 2 years ago 1 minute read

How to deploy slim framework on CPanel

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...

slim-framework - 2 years ago 1 minute read

Laravel Eloquent Increments and Decrements value

Laravel Eloquent Increments and Decrements value

In this post, I would like to show you the hidden and useful functions of Laravel's Eloquent ORM to Increment...

laravel - 2 years ago 1 minute read

Populate Select2 with AJAX data based on X event

Populate Select2 with AJAX data based on X event

In this post, I would like to show you data populating in select 2 dropdown based on x event and...

jquery-2 - 2 years ago 1 minute read

Laravel 5.6 Socialite Bitbucket Login

Laravel 5.6 Socialite Bitbucket Login

In this tutorial, we’re going to explain how to integrate Bitbucket login in Laravel based application using Socialite. The Socialite...

laravel - 2 years ago 1 minute read

Laravel 5.6 Socialite GitHub Login

Laravel 5.6 Socialite GitHub Login

In this tutorial, we’re going to explain how to integrate GitHub login in Laravel based application using Socialite. The Socialite...

laravel - 2 years ago 1 minute read

Laravel 5.6 Socialite LinkedIn Login

Laravel 5.6 Socialite LinkedIn Login

In this tutorial, we’re going to explain how to integrate LinkedIn login in Laravel based application using Socialite. The Socialite...

laravel - 2 years ago 1 minute read

Laravel 5.6 Socialite Google Login

Laravel 5.6 Socialite Google Login

In this tutorial, we’re going to explain how to integrate Google login in Laravel based application using Socialite. The Socialite...

laravel - 2 years ago 1 minute read

Laravel 5.6 Socialite Facebook Login

Laravel 5.6 Socialite Facebook Login

In this tutorial, we’re going to explain how to integrate Facebook login in Laravel based application using Socialite. The Socialite...

laravel - 2 years ago 1 minute read

Laravel 5.6 Socialite Twitter Login

Laravel 5.6 Socialite Twitter Login

In this post, I would like to show you, how we can use Laravel's Socialite plugin to use Twitter authentication...

laravel - 2 years ago 1 minute read

How to send emails from shell script using sendgrid

How to send emails from shell script using sendgrid

In my recent project, we have developed a small process monitoring system to check the health of the process and...

unixlinux - 2 years ago 1 minute read

How to get last inserted id in Laravel

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...

laravel - 2 years ago 1 minute read

How to get Mysql Table Comments

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...

php-mysql - 2 years ago 1 minute read

Merging PDFs using PHP and ghostscript

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...

php-mysql - 2 years ago 1 minute read

How to use Twilio to send SMS with CodeIgniter

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...

codeigniter - 2 years ago 1 minute read

How to list all globally installed NPM packages

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...

node-js - 2 years ago 1 minute read

How to disable IPv6 on  Ubuntu

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...

unixlinux - 2 years ago 1 minute read

How to serve node Socket IO connections with NGINX reverse Proxy

How to serve node Socket IO connections with NGINX reverse Proxy

In this post, I would like to show you the configuration of Nginx web server to serve Socket IO connections...

nginx - 2 years ago 1 minute read

How to insert data into database with CodeIgniter

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....

codeigniter - 2 years ago 1 minute read

How to Enable CSRF (Cross Site Request Forgery) in CodeIgniter

How to Enable CSRF (Cross Site Request Forgery) in CodeIgniter

In this post, I will show you enabling CSRF token in your CodeIgniter application. To enable CSRF (Cross Site Request...

codeigniter - 2 years ago 1 minute read

Get CI's object instance using get_instance() method

Get CI's object instance using get_instance() method

In this post, I will show you how you can access the CI's instance object within your custom classes. You...

codeigniter - 2 years ago 1 minute read

How to create custom helper in CodeIgniter

How to create custom helper in CodeIgniter

In this tutorial, I would like to show creating custom helper in your CodeIgniter application. Helper functions are used to...

codeigniter - 2 years ago 1 minute read

How to generate Excel using PhpSpreadsheet in CodeIgniter

How to generate Excel using PhpSpreadsheet in CodeIgniter

In this post, I would like to show using of PhpSpreadsheet library within your CodeIgniter 3 project. PhpSpreadsheet is a...

codeigniter - 2 years ago 1 minute read

Laravel create a json file and append content to it.

Laravel create a json file and append content to it.

In this post, I would like to show you creating a JSON file and appending content to it whenever somebody...

laravel - 2 years ago 1 minute read

Use for() instead Array.forEach(), for() is 95% faster

Use for() instead Array.forEach(), for() is 95% faster

Array.ForEach is about 95% slower than for() in for each for Arrays in JavaScript. So, don't use: var data =...

javascript-jquery-snippets - 2 years ago 1 minute read

PHP get class name without namespace

PHP get class name without namespace

Below is the simple function to get class name without namesapce. public function getClassName() { $path = explode('\\', __CLASS__); return...

php - 2 years ago 1 minute read

How to setup maintenance mode in CodeIgniter

How to setup maintenance mode in CodeIgniter

In this post, I will show you how easy it is to setup maintenance mode in CodeIgniter using CI's hooks....

codeigniter - 2 years ago 1 minute read

How to connect to a MSSQL Server With PHP

How to connect to a MSSQL Server With PHP

I recently had to connect to an MSSQL Server using PHP on an Ubuntu system using PHP. To connect to...

php-mysql - 2 years ago 1 minute read

How to configure allowed IP Address in Azure SQL firewall

How to configure allowed IP Address in Azure SQL firewall

In this post, I would like to show how you can configure the Azure SQL firewall settings. By configuring the...

tips - 2 years ago 1 minute read

PHP 7.1 - Support for keys in list()

PHP 7.1 - Support for keys in list()

You can now specify keys in list(), or its new shorthand [] syntax. This enables destructuring of arrays with non-integer...

php-mysql - 2 years ago 1 minute read

PHP 7.1 - Symmetric array destructuring

PHP 7.1 - Symmetric array destructuring

In this post, I will show you how you can use the new Symmetric array destructuring feature of PHP7.1 version....

php-mysql - 2 years ago 1 minute read

How to Integrate Google reCAPTCHA

How to Integrate Google reCAPTCHA

In this post, I would like to show you how to integrate Google reCAPTCHA. Google reCAPTCHA is more user-friendly and...

php-mysql - 2 years ago 1 minute read

How to Access Azure REST APIs with Node JS.

How to Access Azure REST APIs with Node JS.

In this post, I will show you can access the Azure REST APIs. In order to access the Azure APIs,...

express-js - 2 years ago 1 minute read

How to delete files older than X days in Linux

How to delete files older than X days in Linux

In this post, I am gonna show you how to write a simple shell script to delete files from a...

unixlinux - 2 years ago 1 minute read

NGINX reverse Proxy - Serve from different folder

NGINX reverse Proxy - Serve from different folder

In this post, I will show you how we can configure NGINX to serve applications form the different directories. I...

nginx - 2 years ago 1 minute read

Slim3 Framework Authorization with JWT (JSON Web Tokens)

Slim3 Framework Authorization with JWT (JSON Web Tokens)

In this post, I will show how you can secure your Slim3 Framework-based applications using JSON Web Token (JWT). To...

slim-framework - 2 years ago 1 minute read

How to enable CORS in Slim3 framework

How to enable CORS in Slim3 framework

In this post, you will learn about Cross-Origin Resource Sharing. Http requests are restricted by the same-origin policy, which means...

slim-framework - 2 years ago 1 minute read

Creating a RESTful API with Slim Framework 3 and Eloquent

Creating a RESTful API with Slim Framework 3 and Eloquent

Slim is a full-featured, open-source PHP micro framework that helps you quickly write simple yet powerful web applications and APIs....

slim-framework - 2 years ago 2 minute read

How to enable CORS in Express.js

How to enable CORS in Express.js

In this post, you will learn about Cross-Origin Resource Sharing. Http requests are restricted by the same-origin policy, which means...

express-js - 2 years ago 1 minute read

How to create rake task to parse Excel file and insert into table in ROR

How to create rake task to parse Excel file and insert into table in ROR

In one of my recent project, I am receiving Excel files from external APIs and I have to parse, validate...

ruby-on-rails-framework - 2 years ago 1 minute read

How to Use Eloquent in Slim Framework

How to Use Eloquent in Slim Framework

The Eloquent ORM makes it incredibly easy to interact with a database. Today we'll look at how we can use...

slim-framework - 2 years ago 1 minute read

Building REST APIs with ES6, Node.js, Express, and MongoDB

Building REST APIs with ES6, Node.js, Express, and MongoDB

In this tutorial, we will use ES6 syntax to build REST APIs. we will set up Babel to work with...

express-js - 2 years ago 3 minute read

How to install the management plugin, RabbitMQ

How to install the management plugin, RabbitMQ

By default, RabbitMQ does not embed a web-based management console but offers it as an optional plugin. This management console...

unixlinux - 2 years ago 1 minute read

How to install and setup RabbitMQ on Ubuntu 16.04

How to install and setup RabbitMQ on Ubuntu 16.04

In this post, I will show you how to install RabbitMQ on Ubuntu 16.04. We can install RabbitMQ easily using...

unixlinux - 2 years ago 1 minute read

How to delete file(s) in Laravel 5

How to delete file(s) in Laravel 5

Deleting files from the file system is very common task nowadays and it can be done in several ways. But...

laravel - 2 years ago 1 minute read

Free PHP, HTML, CSS, JavaScript editor - Codelobster PHP Edition

Free PHP, HTML, CSS, JavaScript editor - Codelobster PHP Edition

Codelobster-PHP edition has been a top of the line software tool to edit web languages for a long time now...

3 minute read

Laravel 5.6 - REST API - JWT Authentication

Laravel 5.6 - REST API - JWT Authentication

In my last tutorial, we created an APIs for todo application without authentication. In this tutorial, I would like to...

laravel - 2 years ago 2 minute read

Laravel 5.6 ReactJS Tutorial

Laravel 5.6 ReactJS Tutorial

In this post, I would like to show you Laravel 5.6 project setup with React JS as frontend framework. In...

laravel - 2 years ago 1 minute read

How to create Nginx custom error pages

How to create Nginx custom error pages

It is always better to show the helpful information to the users instead of the default raw message. In this...

nginx - 2 years ago 1 minute read

Using mPDF with CodeIgniter 3

Using mPDF with CodeIgniter 3

In my previous post, I wrote a tutorial on Generating a PDF in Codeigniter using mPDF and in that tutorial...

codeigniter - 2 years ago 1 minute read

kubeadm - Setup kubenetes cluster on ubuntu 16.04

kubeadm - Setup kubenetes cluster on ubuntu 16.04

Before installing Kubernetes, you have to install dependencies of Kubernetes. You have to install those dependencies in all of the...

kubenetes - 2 years ago 1 minute read

PHP 7.1 - Catching Multiple Exception Types

PHP 7.1 - Catching Multiple Exception Types

We general use PHP's try..catch blocks to handle exceptions. If the try block could cause one of several different exceptions...

php-mysql - 2 years ago 1 minute read

Laravel 5.6 - New @method and @csrf Blade Directives

Laravel 5.6 - New @method and @csrf Blade Directives

Laravel is gonna introduce two new Blade Directives as part of 5.6 release, @method and @csrf Directives. In the current...

laravel - 3 years ago 1 minute read

Download remote URL files using Node JS, wget

Download remote URL files using Node JS, wget

In this post, I would like to show you downloading files using node js and wget. We gonna use URL,...

node-js - 3 years ago 1 minute read

PHP Multithreading Example

PHP Multithreading Example

php-mysql - 3 years ago 1 minute read

ROR - How to update email of user when using devise gem?

ROR - How to update email of user when using devise gem?

If you update user email address when you are using device gem, it will be stored in the unconfirmed_email column...

ruby-on-rails-framework - 3 years ago 1 minute read

Laravel 5.5 - How to log all Eloquent Queries

Laravel 5.5 - How to log all Eloquent Queries

In this post, I will show you simple method to log each and every Eloquent Query of your application executes....

laravel - 3 years ago 1 minute read

Laravel 5.5 - Custom Blade::if() Directives

Laravel 5.5 - Custom Blade::if() Directives

In Laravel 5.5, writing custom blade if Directives is pretty easy. Using this new feature, you can write simplified and...

laravel - 3 years ago 1 minute read

How to capture screenshot of website with a URL using PHP

How to capture screenshot of website with a URL using PHP

In this post, we gonna write a simple PHP script to grab given website URL screenshot. So let's create an...

php-mysql - 3 years ago 1 minute read

Laravel 5.5 - New Blade Directives , @auth and @guest

Laravel 5.5 - New Blade Directives , @auth and @guest

As part of Laravel 5.5 version release, Laravel introduced new blade directives called @auth and @guest.As the name implies both...

laravel - 3 years ago 1 minute read

Laravel 5.5 - DD and Dump in Collections

Laravel 5.5 - DD and Dump in Collections

Laravel offers two new useful debugging methods dump() and dd() as part of Laravel 5.5 version release. These methods are...

laravel - 3 years ago 1 minute read

Laravel 5.5 - Optional Objects

Laravel 5.5 - Optional Objects

Laravel 5.5 includes a new `Optional` class with a new helper() function, which you can think of as a generic...

laravel - 3 years ago 1 minute read

Laravel 5.5 - Dynamic templates with View::first

Laravel 5.5 - Dynamic templates with View::first

Laravel 5.5 is introduced a new feature called dynamic view loading and it makes your controllers simple and more expressive...

laravel - 3 years ago 1 minute read

Laravel - Generate PDF file from view

Laravel - Generate PDF file from view

We gonna use barryvdh/laravel-dompdf Laravel package to generate PDF files from view file. This package is just a wrapper around...

laravel - 3 years ago 1 minute read

Laravel 5.5 - The Route::redirect method

Laravel 5.5 - The Route::redirect method

Laravel 5.5 introduced new Router class method called redirect, which gives the flexibility to redirect to other URLs directly without...

laravel - 3 years ago 1 minute read

Laravel 5.5 - The Route::view method

Laravel 5.5 - The Route::view method

Laravel 5.5 introduced new Router class method called view, which gives the flexibility to render the view file directly without...

laravel - 3 years ago 1 minute read

How to change created_at and updated_at column names in Laravel

How to change created_at and updated_at column names in Laravel

You can easily change created_at and updated_at column names by overriding CREATED_AT and UPDATED_AT constants in your Eloquent model. Example...

laravel - 3 years ago 1 minute read

How to force download files in Laravel?

How to force download files in Laravel?

Giving download option to the user is a pretty common requirement in today's web apps for the variety of reasons....

laravel - 3 years ago 1 minute read

How to Create APIs in Laravel 5.5 using API resources

How to Create APIs in Laravel 5.5 using API resources

In this post, I will show how easy it is to use API resources to build REST APIs. In the...

laravel - 3 years ago 2 minute read

How to serve Node js app with NGINX reverse Proxy

How to serve Node js app with NGINX reverse Proxy

In this post I will show you How we can use NGINX web server as Revers Proxy server. NGINX is...

express-js - 3 years ago 1 minute read

Async Await Error handling

Async Await Error handling

In this post, I will show how to add error handling when using async/await. One of the goals of async/await...

javascript - 3 years ago 1 minute read

RESTful API Using async, await - Node, Express and sequelize

RESTful API Using async, await - Node, Express and sequelize

By reading this tutorial you can build RESTful APIs using Node, express, and Sequelize ORM. You gonna use the different...

express-js - 3 years ago 5 minute read

.dockerignore

.dockerignore

In this post will show you how to use the .dockerignore. It will help reducing Docker image size, speedup docker...

unixlinux - 3 years ago 1 minute read

How To Stop and Remove All Docker Images, Containers, and Volumes

How To Stop and Remove All Docker Images, Containers, and Volumes

In this guide, I will show you simple tips to stop and remove containers, docker images, and values. List all...

unixlinux - 3 years ago 1 minute read

Build REST apis with Laravel 4.2

Build REST apis with Laravel 4.2

Create a brand new Laravel Project with below command $ composer create-project laravel/laravel todo 4.2 --prefer-dist Configure Your Database Open...

laravel - 3 years ago 1 minute read

Node Js - convert a callback-based function to a Promise-based one?

Node Js - convert a callback-based function to a Promise-based one?

In this post you will learn how to convert a callback-based function to a promise-based one using util.promisify() function.As a...

node-js - 3 years ago 1 minute read

How to insert initial dummy data using sequelize seeds/Faker -Draft

How to insert initial dummy data using sequelize seeds/Faker -Draft

This post is extension of my previous post, Build a RESTful API Using Node, Express and sequelize . From the...

express-js - 3 years ago 1 minute read

Build a RESTful API Using Node, Express and sequelize

Build a RESTful API Using Node, Express and sequelize

By reading this tutorial you can build RESTful APIs using Node, express, and sequelize ORM. You gonna use the different...

express-js - 3 years ago 5 minute read

Uploading Directories At Once With webkitdirectory

Uploading Directories At Once With webkitdirectory

We can use webkitdirectory to allow uploading an entire folder or folders of files without selecting each file manually. webkitdirectory...

html - 3 years ago 1 minute read

How to Deploy an Angular app in Production with Nginx

How to Deploy an Angular app in Production with Nginx

This tutorial I will show you Nginx installation and configuration steps to serve Angular application in production. I am gonna...

angular-2 - 3 years ago 1 minute read

Enable and Configure mod_rewrite for Apache on CentOS 7

Enable and Configure mod_rewrite for Apache on CentOS 7

The mod_rewrite module is enabled by default on CentOS 7. If you find it is not enabled on your server,...

apache - 3 years ago 1 minute read

Ajax Login form using PHP and MySQL

Ajax Login form using PHP and MySQL

Today I would like to show you Ajax login functionality implementation using PHP and MySQL. We gonna use MySQL PDO...

php-mysql - 3 years ago 1 minute read

How To Add Facebook SDK v5  Login to PHP Website

How To Add Facebook SDK v5 Login to PHP Website

Nowadays social media login are everywhere and users are not interested in filling a lengthy form to register. Most of...

php-mysql - 3 years ago 1 minute read

Download a file from NodeJS Server using ExpressJS

Download a file from NodeJS Server using ExpressJS

I this tutorial you will learn how to download files from your NodeJS server from your express js application. As...

express-js - 3 years ago 1 minute read

PHP Program to Check Prime Number

PHP Program to Check Prime Number

In this tutorial, you will learn what is a prime number and how to check whether the given number is...

php-mysql - 3 years ago 1 minute read

Cascading dropdown in Angular

Cascading dropdown in Angular

In this article, you will learn how to use cascading DropDownList using Angular application. In following tutorial you gonna use...

angular-2 - 3 years ago 2 minute read

Phone Number Validation with HTML5

Phone Number Validation with HTML5

In order to improve the security of the application, you should follow one of the fundamental principle called "Never trust...

html - 3 years ago 1 minute read

Cascading Dropdown List in CodeIgniter

Cascading Dropdown List in CodeIgniter

In this post, I will show very simple and powerful approach to create cascading dropdowns in your CodeIgniter application. Cascading...

codeigniter - 3 years ago 1 minute read

Angular - Global API service request method

Angular - Global API service request method

Using HTTP service directly in all over the application is not scalable, its only work for small applications. Having a...

angular-2 - 3 years ago 1 minute read

Angular NgSwitch Directive

Angular NgSwitch Directive

The NgSwitch directive lets you to insert different sets of elements into the document based on a specified value or...

angular-2 - 3 years ago 1 minute read

How to connect to multiple Database - Slim Framework.

How to connect to multiple Database - Slim Framework.

In the earlier post I wrote a tutorial on "how to connecting to database in slim framework". In this post,...

slim-framework - 3 years ago 1 minute read

Angular 4 - Add dynamic class to the body based on route.

Angular 4 - Add dynamic class to the body based on route.

Inside the root app component, Inject the Router and subscribe to route change events and detect the NavigationStart event with...

angular-2 - 3 years ago 1 minute read

Express JS - Convert Given text to Voice using Node JS

Express JS - Convert Given text to Voice using Node JS

I this post I would like to introduce 'say', which reads out the given text and we can even save...

express-js - 3 years ago 1 minute read

Add Watermark on Images using PHP

Add Watermark on Images using PHP

One of the most common approaches to brand/protect images is watermarking. Here I would like to show you how to...

php-mysql - 3 years ago 1 minute read

How to download a remote file in FuseTools?

How to download a remote file in FuseTools?

Today I am gonna write about file downloading from a remote source in you FuseTools based mobile applications. About FuseTools...

fuse-tools - 3 years ago 1 minute read

Enabling HTTPS for Your Express App

Enabling HTTPS for Your Express App

I am gonna show you the usage of SSL certificates along with Express JS based application. Once you have your...

express-js - 3 years ago 1 minute read

Laravel 5.5 New feature- Fresh Migrations

Laravel 5.5 New feature- Fresh Migrations

In Laravel 5.5 a new Artisan command added to migrate: namespace. This is similar to the existing migrate:refresh option, however,...

laravel - 3 years ago 1 minute read

Laravel - .env Variables

Laravel - .env Variables

Laravel utilizes the DotEnv PHP library by Vance Lucas. Using this library we can easily configure the application settings and...

laravel - 3 years ago 1 minute read

JavaScript - How to check number is odd or even

JavaScript - How to check number is odd or even

Here is the simple JavaScript code snippet to check if the given number is an odd or even number. Function...

javascript-jquery-snippets - 3 years ago 1 minute read

PHP - How To Check Number Is Odd Or Even

PHP - How To Check Number Is Odd Or Even

Here is simple PHP code snippet to check if a given number is odd or even. Check Number Is Odd...

php - 3 years ago 1 minute read

.htaccess Redirect to specific Sub-Domain based on User Agent

.htaccess Redirect to specific Sub-Domain based on User Agent

You can use mod_rewrite's RewriteCond directive to redirect user's to different websites depending on what device they are using. .htaccess...

apache - 3 years ago 1 minute read

How To Capitalize The First Letter Of A String In JavaScript

How To Capitalize The First Letter Of A String In JavaScript

Here is the quick JavaScript code snippet to capitalize the first letter of a string. function ucFirst(string) { return string.charAt(0).toUpperCase()...

javascript - 3 years ago 1 minute read

How to Clear cache in Laravel 5

How to Clear cache in Laravel 5

Here I am gonna show you few artisan commands which will help you to clear different caches in your Laravel...

laravel - 3 years ago 1 minute read

How to check current installed version of Laravel ?

How to check current installed version of Laravel ?

You can use laravel's artisan command to check currently installed version of Laravel Framework Version of Laravel Issue below command...

laravel-code-snippets - 3 years ago 1 minute read

How to create an image from base64 format in Laravel 5.4

How to create an image from base64 format in Laravel 5.4

I will show you, how is easy it is to convert base64 format image to image. All you have to...

laravel - 3 years ago 1 minute read

How to use JWT (JSON Web Token) with Express JS

How to use JWT (JSON Web Token) with Express JS

Today I am gonna show you JWT(JSON Web Token) token generating and verification steps with express JS framework. What is...

express-js - 3 years ago 2 minute read

Facebook login with PHP

Facebook login with PHP

Create a Facebook App Goto https://developers.facebook.com/apps and click add new app Choose Website Choose the name for your facebook app...

php-mysql - 3 years ago 1 minute read

Node JS - Integrate Stripe Payment Gateway in Express JS

Node JS - Integrate Stripe Payment Gateway in Express JS

One of the obvious reasons to love stripe is, it is pretty easy to integrate, and nowadays it is the...

express-js - 3 years ago 2 minute read

Node JS Email Validation with MX DNS Record Check

Node JS Email Validation with MX DNS Record Check

Typically we do the email validation with regular expression which will validate the structure. The Regular expression can be useless...

node-js - 3 years ago 1 minute read

How to serve static files with Express

How to serve static files with Express

In many instances you required to server static assets such as images, css files and JavaScript files, so today we...

express-js - 3 years ago 1 minute read

Laravel 5.4 -  Resourceful Controllers With Model Boilerplate

Laravel 5.4 - Resourceful Controllers With Model Boilerplate

In the previous posts I have covered two Laravel 5.4 features called "Laravel 5.4: Fluent Routing" and "Laravel 5.4: New...

laravel - 3 years ago 1 minute read

Laravel 5.4: Fluent Routing

Laravel 5.4: Fluent Routing

Laravel 5.4 has released another pretty cool routing improvement. In this post, I would like to show you the improved...

laravel - 3 years ago 1 minute read

New middlewares in Laravel 5.4 - TrimStrings and ConvertEmptyStringsToNull

New middlewares in Laravel 5.4 - TrimStrings and ConvertEmptyStringsToNull

Laravel 5.4 shipped with two new middlewares called TrimStrings and ConvertEmptyStringsToNull TrimStrings middleware - automatically trim all the request data....

laravel - 3 years ago 1 minute read

How To Validate Date Format in Laravel

How To Validate Date Format in Laravel

In this post, I would like to show you date format validation in Laravel application, You should always validate forms...

laravel - 3 years ago 1 minute read

Laravel API Token Authentication

Laravel API Token Authentication

If you want to create a simple REST API, secured by web tokens for your mobile application or angular based...

laravel - 3 years ago 1 minute read

bootstrap 4 carousel with Laravel

bootstrap 4 carousel with Laravel

Laravel's Blade templating engine's @foreach control structure directive has $loop variable which is available inside every @foreach loop. The $loop...

laravel - 3 years ago 1 minute read

How can I paginate an array of objects in JavaScript?

How can I paginate an array of objects in JavaScript?

Depending on your needs sometimes you may wish to create a pagination with an array of items. This post will...

javascript - 3 years ago 1 minute read

Basic Twitter Bootstrap 4 Template

Basic Twitter Bootstrap 4 Template

This is a basic Twitter Bootstrap 4 template that I use most of the time for Twitter Bootstrap 3 based...

1 minute read

How to Apply CSS Classes Conditionally in Angular 2

How to Apply CSS Classes Conditionally in Angular 2

Angular 2 provide different ways to apply class to the elements based on certain conditions. In this post I would...

angular-2 - 3 years ago 1 minute read

How to import outlook contacts to ionic app - Draft

How to import outlook contacts to ionic app - Draft

1. Login to Microsoft developer console or you can directly go to the console by clicking following link and crate...

ionic - 3 years ago 2 minute read

Hide Your WordPress Login Error Details

Hide Your WordPress Login Error Details

By default, WordPress show too detailed error messages when someone enters incorrect username or password on the login page. These...

php-mysql - 3 years ago 1 minute read

Bookshelf js - Deleting Row and Related Rows in a Many-to-Many Relationship

Bookshelf js - Deleting Row and Related Rows in a Many-to-Many Relationship

In this post I would like to show you a best way to destroy a model and related models/collections of...

node-js - 3 years ago 1 minute read

Import contacts from Outlook, Office 365 and Live to your PHP application

Import contacts from Outlook, Office 365 and Live to your PHP application

In this tutorial I will show you, how to import Outlook,office 365 and Live contacts to your web project, using...

php-mysql - 3 years ago 1 minute read

Laravel Create Controller, Model and migration in one Artisan Command

Laravel Create Controller, Model and migration in one Artisan Command

Artisan is the command-line interface included with Laravel. It provides a number of helpful commands that can assist you while...

laravel - 3 years ago 1 minute read

How to show confirmation prompt while deleting row in Laravel.

How to show confirmation prompt while deleting row in Laravel.

It's always better to ask for the confirmation while deleting items with alert prompt. So here I am gonna show...

laravel - 3 years ago 1 minute read

How to record last login time and IP address of a user In Laravel

How to record last login time and IP address of a user In Laravel

Recording last login information is useful and you can easily save and update the last login time and IP address...

laravel - 3 years ago 1 minute read

How to get Client IP Address in Laravel 5

How to get Client IP Address in Laravel 5

Sometimes you need to track the IP address of the visitors for different reasons. In this tutorial, I would like...

laravel - 3 years ago 1 minute read

Laravel 5 Role Based Access Control using Middlewares

Laravel 5 Role Based Access Control using Middlewares

In this post, I would like to show you very simple approach to develop a security layer around Laravel routes...

laravel - 3 years ago 1 minute read

How to Build and integrate MailChimp Subscribe list with Node js

How to Build and integrate MailChimp Subscribe list with Node js

In this post I would like to show you a simple demo application which is build on top of express...

node-js - 3 years ago 3 minute read

Exponentiation operator (**) in JavaScript

Exponentiation operator (**) in JavaScript

The exponentiation operator was introduced in ECMAScript 2016, ** is used to denote this operator. It accepts base on its...

javascript - 3 years ago 1 minute read

Auto refresh current page with regular intervals using JS

Auto refresh current page with regular intervals using JS

To refresh or reload active or current page using JavaScript, you can use the location.reload() and setTimeout() methods. The reload()...

javascript - 3 years ago 1 minute read

JavaScript ES6  Destructuring in Depth

JavaScript ES6 Destructuring in Depth

Destructuring is alluring language feature, I’ve been using the most. Destructuring is provides a convenient way of extracting multiple values...

javascript - 3 years ago 1 minute read

How to Delete a File in Node JS

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...

node-js - 3 years ago 1 minute read

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

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...

express-js - 3 years ago 7 minute read

Node JS – Auto Generate a Photo Gallery from a Directory

Node JS – Auto Generate a Photo Gallery from a Directory

In my previous articles, I wrote tutorial on this topic but it was in PHP, in this post I would...

express-js - 3 years ago 2 minute read

Laravel download files via FTP

Laravel download files via FTP

This post is going to be about downloading files from the remote server via FTP mechanism in your Laravel application....

laravel - 3 years ago 1 minute read

How to handle cookies in Express JS?

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...

express-js - 3 years ago 2 minute read

PHP - Auto Generate a Photo Gallery from a Directory with pagination

PHP - Auto Generate a Photo Gallery from a Directory with pagination

Three year ago I wrote a post on generating image gallery from a given directory. Some of my readers are...

php-mysql - 3 years ago 1 minute read

Enabling HTTPS for Express.js application

Enabling HTTPS for Express.js application

By using HTTPS protocol we increase the security of your application, SSL mechanism will encrypt the connection between you and...

express-js - 3 years ago 1 minute read

Express js optimize performance with GZIP Compression

Express js optimize performance with GZIP Compression

You can improve speed and save bandwidth by using GZIP compression in your express js application. GZIP actually decreases the...

express-js - 3 years ago 1 minute read

Express js optimize performance with clusters

Express js optimize performance with clusters

You can increase the performance of your Express.js application by using clusters. Cluster is a native core library from node.js...

express-js - 3 years ago 1 minute read

NPM top commands

NPM top commands

Just like composer from PHP ,RubyGems from Ruby ,pip from Python, Maven from Java, NuGet from Microsoft Node.js also has...

node-js - 3 years ago 1 minute read

How to filter a PHP array by key?

How to filter a PHP array by key?

PHP array_intersect_key() function returns an array containing all the entries of primary array which have keys that are preset in...

php-mysql - 3 years ago 1 minute read

How to connect to MySQL from the command line

How to connect to MySQL from the command line

The MySQL database is one of the well know database engine, which uses a client-server architecture. The server, mysqld is...

php-mysql - 3 years ago 1 minute read

File uploads in express js 4

File uploads in express js 4

In this tutorial you will learn how to upload files on remote server using node js in your express js...

express-js - 3 years ago 2 minute read

Angular 2 - Async Validator - Username/email availability check

Angular 2 - Async Validator - Username/email availability check

In this post I will show you, how we can create custom async validator to check for email availability, same...

angular-2 - 3 years ago 1 minute read

Design pattern - Chain of Responsibility

Design pattern - Chain of Responsibility

Design patterns are very general/non specific reusable solutions or templates to solve a specific design problems in software design. Which...

design-pattern - 3 years ago 1 minute read

Encrypt and Decrypt files using PHP

Encrypt and Decrypt files using PHP

In my recent project I have implemented PDF file encryption and decryption. In this project, data is very sensitive so...

php-mysql - 3 years ago 1 minute read

ECMAScript 2016 - Finding if a value exists in an array using JavaScript

ECMAScript 2016 - Finding if a value exists in an array using JavaScript

We gonna use ECMAScript 2016's new includes() method to determine whether an array contains a specific element. The new method...

javascript - 4 years ago 1 minute read

How to Connect to MySQL Database from Node.Js

How to Connect to MySQL Database from Node.Js

In this article you will learn how to connect to MySQL server database using Node Js MySQL driver. We gonna...

node-js - 4 years ago 2 minute read

Create REST API with the Laravel 5.5

Create REST API with the Laravel 5.5

This tutorial provides an example of building a complete RESTful API using Laravel 5.5.* Framework. You gonna use the different...

laravel - 4 years ago 2 minute read

DomPDF Library using Codeigniter 3

DomPDF Library using Codeigniter 3

In this tutorial, we will discuss how to generate PDF using DOMPDF with Codeigniter Framework version 3 and composer(PHP dependency...

codeigniter - 4 years ago 1 minute read

Send Email using G-Mail SMTP in Express/Node.js

Send Email using G-Mail SMTP in Express/Node.js

In this arti­cle, I will demon­strate a sim­ple exam­ple of send­ing emails using G-Mail SMTP in Express/ Node.js. fortunately sending...

express-js - 4 years ago 1 minute read

MySQL Sub Queries

MySQL Sub Queries

I this post I would like to write about sub queries. A Sub-query is also a query, which is defined...

php-mysql - 4 years ago 1 minute read

Serving static files with Node JS

Serving static files with Node JS

During the front-end development to serve static files such as images, CSS files, and JavaScript files you require the web...

node-js - 4 years ago 1 minute read

JavaScript Promise API

JavaScript Promise API

Promises can replace the asynchronous use of callbacks, and they provide several benefits over them. Basic Promise Usage A new...

javascript - 4 years ago 1 minute read

JavaScript const keyword

JavaScript const keyword

In my previous post I wrote about let keyword, in this post I would like to write about another new...

javascript - 4 years ago 1 minute read

JavaScript let keyword

JavaScript let keyword

In this tutorial I will introduce you to new ECMAScript 6 let keyword. Variables declared with let keyword behave like...

javascript - 4 years ago 1 minute read

How to Delete a File in Ruby

How to Delete a File in Ruby

The following tutorial describe how to delete files and directories that you no longer need in your application. Removing single...

ruby - 4 years ago 1 minute read

MySQL - Where clause on a comma separated values/String

MySQL - Where clause on a comma separated values/String

To perform where clause on comma separated string/values, MySQL has an inbuilt function called FIND_IN_SET which will search for values...

php-mysql - 4 years ago 1 minute read

Ruby - Check whether a file or directory exists

Ruby - Check whether a file or directory exists

Checking whether a file exists or not, is one of the most basic file related tasks which you will do...

ruby - 4 years ago 1 minute read

Create WebPage Screenshots with Node.js and PhantomJS

Create WebPage Screenshots with Node.js and PhantomJS

To create webpage screenshots we are going to use PhantomJs. PhantomJS is a headless WebKit scriptable with a JavaScript API....

node-js - 4 years ago 1 minute read

Laravel 5  Pagination with array

Laravel 5 Pagination with array

Laravel provides pagination for Eloquent results out of the box, but for custom data, we need to do the pagination...

laravel - 4 years ago 1 minute read

How to iterate over a array in Ruby

How to iterate over a array in Ruby

The each construct provides an easy way to iterate over arrays and hash. each loop will continue until it has...

ruby - 4 years ago 1 minute read

how to get the CI's base url in JavaScript

how to get the CI's base url in JavaScript

I received a tutorial request from my reader that asked me how to access CI's base URL inside the JavaScript/external...

codeigniter - 4 years ago 1 minute read

Coming up in laravel 5.3

Coming up in laravel 5.3

Laravel5.3 is coming with following new features, 1. Rollback one migration 2. Blade Foreach Loops (new $loop variable) 3. Eloquent...

laravel - 4 years ago 1 minute read

Getting started with Git

Getting started with Git

In this post I would like to provide basic usage steps and a list of some basic Git commands to...

git - 4 years ago 3 minute read

Creating a RESTful API with Slim Framework 3, PHP/MySQl

Creating a RESTful API with Slim Framework 3, PHP/MySQl

Slim is a full-featured, open-source PHP micro framework that helps you quickly write simple yet powerful web applications and APIs....

slim-framework - 4 years ago 6 minute read

MySQL IF Function

MySQL IF Function

In this tutorial, you will learn how to use MySQL IF function. MySQL IF function is one of the MySQL...

php-mysql - 4 years ago 1 minute read

Linux - Start, Stop, Restart Nginx WebServer

Linux - Start, Stop, Restart Nginx WebServer

You can start,stop and restart Nginx web server by issuing any of the following commands from your terminal as a...

nginx - 4 years ago 1 minute read

Better way of using jquery's Append

Better way of using jquery's Append

We use append() method for adding elements dynamically into an already existing element. If you miss use this function, it...

jquery-2 - 4 years ago 1 minute read

Get selected Text and Value of DropDownList using jQuery

Get selected Text and Value of DropDownList using jQuery

This tutorial illustrates about getting selected Text and Value of HTML Select DropDownList on Button click using jQuery. The following...

jquery-2 - 4 years ago 1 minute read

Slim3 Routes

Slim3 Routes

The router component allows you to define routes that are mapped to callback handlers that should receive the request. The...

slim-framework - 4 years ago 1 minute read

Custom Facade in Laravel?

Custom Facade in Laravel?

In Laravel world, a facade is a class that provides access to an object from the container. Laravel "facades" serve...

laravel - 4 years ago 1 minute read

How to install Slim Framework 3

How to install Slim Framework 3

Slim is a PHP micro framework that helps you write simple web applications and APIs quickly. It comes with a...

slim-framework - 4 years ago 1 minute read

How to configure/load database in Slim Framework 3

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....

slim-framework - 4 years ago 1 minute read

Slim framework 3 - Route Groups

Slim framework 3 - Route Groups

Slim lets you group related routes. Route groups allow you to share route attributes, such as middleware or URL segments...

slim-framework - 4 years ago 1 minute read

How to Run Gulp Tasks in Laravel with Elixir

How to Run Gulp Tasks in Laravel with Elixir

This tutorial describes how to use laravel's elixir to run Gulp tasks. Gulp is a javascript task runner, it keeps...

laravel - 4 years ago 2 minute read

Wordpress excluding category from pagination the loop

Wordpress excluding category from pagination the loop

Past below code snippet right before loop and change category ID!

wordpress-code-snippets - 4 years ago 1 minute read

JavaScript measuring execution time

JavaScript measuring execution time

JavaScript performance is becoming increasingly important, it is good to know basic instrumentation techniques. One of the basic instrumentation tool...

javascript - 4 years ago 1 minute read

How to determine the version of bash

How to determine the version of bash

In this post, I would like to show you a very trivial example, which will help you to find the...

unixlinux - 4 years ago 1 minute read

JQuery Preload Images

JQuery Preload Images

jQuery make it easy to preload images in the background so visitors won’t have to wait forever when they would...

javascript-jquery-snippets - 4 years ago 1 minute read

Toggle class on hover

Toggle class on hover

$('.btn').hover(function(){ $(this).addClass('hover'); }, function(){ $(this).removeClass('hover'); } );

javascript-jquery-snippets - 4 years ago 1 minute read

Fix broken images automatically

Fix broken images automatically

Occasionally we have times when we have broken image links on our website and replacing them one by one isn’t...

javascript-jquery-snippets - 4 years ago 1 minute read

Assign PHP value to JS

Assign PHP value to JS

//here we have one php variable //In javascript/jQuery var spge = ''; // need to put single/double quote there for...

php - 4 years ago 1 minute read

Check AJAX Request using PHP

Check AJAX Request using PHP

if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { /* This is one ajax call }

php - 4 years ago 1 minute read

Append New HTML

Append New HTML

var sometext = "here is more HTML"; $("p#text1").append(sometext); // added after $("p#text1").prepend(sometext); // added before

javascript-jquery-snippets - 4 years ago 1 minute read

Equal Column Heights

Equal Column Heights

var maxheight = 0; $("div.col").each(function(){ if($(this).height() > maxheight) { maxheight = $(this).height(); } }); $("div.col").height(maxheight);

javascript-jquery-snippets - 4 years ago 1 minute read

Scroll to Top

Scroll to Top

$("a[href='#top']").click(function() { $("html, body").animate({ scrollTop: 0 }, "slow"); return false; });

javascript-jquery-snippets - 4 years ago 1 minute read

Prevent Anchor Links from Loading

Prevent Anchor Links from Loading

$("a").on("click", function(e){ e.preventDefault(); });

javascript-jquery-snippets - 4 years ago 1 minute read

Zip and Unzip Linux Commands

Zip and Unzip Linux Commands

In this post, you will find practical examples showing how to install and use the zip command to compact and...

unixlinux - 4 years ago 1 minute read

Getting post tags in wordpress

Getting post tags in wordpress

Withing the loop - it will display the post tags $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) {...

wordpress-code-snippets - 4 years ago 1 minute read

IE conditionals for css

IE conditionals for css

According to the conditional comment this is not IE 5-9

css-snippets - 4 years ago 1 minute read

Remove specific value from array using php?

Remove specific value from array using php?

This post shows the possible ways to remove specific element from array based on value of the element. Removing specific...

php-mysql - 4 years ago 1 minute read

How to generate excel from array using PHPExcel

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...

php-mysql - 4 years ago 1 minute read

Reading RSS Feed with PHP

Reading RSS Feed with PHP

This article shows how to read RSS feeds using php script. If you are reading this post you might know...

php-mysql - 4 years ago 1 minute read

Last executed queries in Laravel5

Last executed queries in Laravel5

You can use getQueryLog() method to get most recently executed queries. But in Laravel 5.1 it is disabled by default....

laravel-code-snippets - 4 years ago 1 minute read

Multiple Route files in Laravel 5

Multiple Route files in Laravel 5

For small-scale applications single route file is sufficient but large-scale applications its cumbersome to maintain and organize the routes. The...

laravel - 4 years ago 1 minute read

How to Convert a PDF to JPEG using PHP

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...

php-mysql - 4 years ago 1 minute read

Laravel Eloquent - make a copy of a row

Laravel Eloquent - make a copy of a row

Today I would like to write about one of the little-known features of laravel eloquent called "replicate". To copy everything...

laravel - 4 years ago 1 minute read

Laravel 5.2 - Implicit model binding

Laravel 5.2 - Implicit model binding

Laravel's route model binding has been around for a while, but Laravel 5.2 is about to make it even easier...

laravel - 4 years ago 1 minute read

Express js - Creating your own middleware

Express js - Creating your own middleware

One of the greatest things about Express is that it is easily extended, which is achieved by using middleware. Middleware...

express-js - 4 years ago 1 minute read

PHP get function arguments as array?

PHP get function arguments as array?

func_get_args() returns an array with all arguments of the current function. PHP5.6 - splat operator Arrays and Traversable objects can...

php - 4 years ago 1 minute read

Getting Started with Express.js

Getting Started with Express.js

In this post I would like to write getting started steps for Express.js framework. What is Express? Express is a...

express-js - 4 years ago 1 minute read

Laravel 5 - SHA1 encryption instead of BCrypt

Laravel 5 - SHA1 encryption instead of BCrypt

Recently I have migrated core PHP application to the Laravel5 framework. The old application used SHA1 encryption so I have...

laravel - 4 years ago 1 minute read

Laravel 5 - Prevent Browser back button after Logout

Laravel 5 - Prevent Browser back button after Logout

In this post, I would like to share a simple Laravel5 Middleware which prevents going back to the previous protected...

laravel - 4 years ago 1 minute read

How to add custom class in Laravel 5

How to add custom class in Laravel 5

In this tutorial, I will show you how to add a custom PHP class in Laravel 5.x application. For example,...

laravel - 4 years ago 1 minute read

Laravel5 Inactivity idle session logout

Laravel5 Inactivity idle session logout

In this post, I would like to show how to automatically log out the user after some period of inactivity....

laravel - 4 years ago 1 minute read

Laravel 5 Maintenance Mode

Laravel 5 Maintenance Mode

Enabling and disabling maintenance mode in Laravel 5 is simple, you just need to issue following artisan commands - To...

laravel - 4 years ago 1 minute read

PHP's built-in Web Server

PHP's built-in Web Server

PHP's built-in Web Server designed specifically for development and testing. Since PHP5.4, CLI SAPI comes with a built-in web server....

php-mysql - 4 years ago 1 minute read

JQuery Check if Element Exists

JQuery Check if Element Exists

if ($('#myElement').length > 0) { // it exists }

javascript-jquery-snippets - 4 years ago 1 minute read

Check for Empty Elements

Check for Empty Elements

if($('#myDiv').is(':empty')) { // do something }

javascript-jquery-snippets - 4 years ago 1 minute read

JQuery Adding/Removing Class on Hover

JQuery Adding/Removing Class on Hover

$('#element').hover( function(){ $(this).addClass('hover') }, function(){ $(this).removeClass('hover') } )

javascript-jquery-snippets - 4 years ago 1 minute read

Add text to an image with PHP

Add text to an image with PHP

In this post I would like to show how you can add text to an image with PHP, GD Library....

php-mysql - 4 years ago 1 minute read

Scroll to top JQuery

Scroll to top JQuery

When you have web page too long, it is recommended to provide your users easy navigation mechanism.You we can provide...

jquery-2 - 4 years ago 1 minute read

AngularJS - IsArray function

AngularJS - IsArray function

AngularJS isArray() is one of the useful ng function. This function is used to identify if a reference is array...

angularjs - 4 years ago 1 minute read

How to change array keys from uppercase to lowercase?

How to change array keys from uppercase to lowercase?

The array_change_key_case() function changes all keys in an array to lowercase or uppercase. Syntax: array_change_key_case(array,case); array - The array to...

php - 4 years ago 1 minute read

Convert Comma Separated String into Array

Convert Comma Separated String into Array

<?php $str="foo,bar,baz,bat"; $arr=explode(",",$str); // print_r($arr); ?>

php - 4 years ago 1 minute read

PHP - Convert HEX to RGB

PHP - Convert HEX to RGB

Below function takes hex code (e.g. #eeeeee), returns array of RGB values. function hex2rgb( $colour ) { if ( $colour[0]...

php - 4 years ago 1 minute read

Zero Padded Numbers with php?

Zero Padded Numbers with php?

Today I got a situation where I need automatically zero filled number. I realized it could be done much str_pad....

php-mysql - 4 years ago 1 minute read

Codeigniter - Save config data in database

Codeigniter - Save config data in database

In this post, I would like to show you saving config data in the database in your CodeIgniter application. And...

codeigniter - 5 years ago 1 minute read

Remove Whitespace and line breaks from String using PHP

Remove Whitespace and line breaks from String using PHP

In PHP we have in-build functions to replace white-space from the start and end of the string these are trim,...

php-mysql - 5 years ago 1 minute read

Google Webfonts and performance fix

Google Webfonts and performance fix

WebFontConfig = { google: { families: [ 'PT+Sans:400,400italic:latin', 'Ubuntu:300,400,500:latin' ] } }; var cb = function() { var wf =...

javascript-jquery-snippets - 5 years ago 1 minute read

PHP - Cache Google Web Fonts using Api

PHP - Cache Google Web Fonts using Api

/** * Get google fonts * * @param integer $amount - Return a chuck of fonts * * @return Array...

php - 5 years ago 1 minute read

Saving Session Data to a Database in CodeIgniter3

Saving Session Data to a Database in CodeIgniter3

CodeIgniter natively support storing session in the database. You do not need to do any changes in code, just a...

codeigniter - 5 years ago 1 minute read

JavaScript Module Pattern

JavaScript Module Pattern

Design patterns offer developers ways to solve technical problems in a reusable and elegant way. Probably module pattern is the...

javascript - 5 years ago 2 minute read

Enable GZIP Compression on nginx Servers

Enable GZIP Compression on nginx Servers

Enabling GZIP compression on Nginx servers is easy and it improves application performance as well as saves bandwidth transfer. By...

nginx - 5 years ago 1 minute read

Polymorphic Eloquent Relationships in Laravel 5

Polymorphic Eloquent Relationships in Laravel 5

In this post, I would like to show you creating polymorphic relationships in the Laravel5 application. Probable polymorphic relationships are...

laravel - 5 years ago 1 minute read

How to Setup Virtual Hosts in Ubuntu

How to Setup Virtual Hosts in Ubuntu

In this post, I will walk you through, how to Setup Virtual Hosts in Ubuntu. Virtual Hosts are used to...

apache - 5 years ago 1 minute read

How to get  the logo of any company

How to get the logo of any company

In this post I would like to show you getting any company logo with the use of Clearbit's logo API...

php-mysql - 5 years ago 1 minute read

Laravel 5 get current authenticated user?

Laravel 5 get current authenticated user?

Upon successful login you can get current user details by called Auth::user() method. It will return null if no user...

laravel - 5 years ago 1 minute read

PHP7 - Context Sensitive Lexer

PHP7 - Context Sensitive Lexer

In PHP7 Reserved Word Restrictions was loosen. There are currently 64 keywords reserved by PHP and some of them would...

php-mysql - 5 years ago 1 minute read

How to Create a Project using XTRF APIs with PHP

How to Create a Project using XTRF APIs with PHP

In this post, I would like to write about creating projects on XTRF using web services and PHP. XTRF is...

xtrf - 5 years ago 1 minute read

How to redirect requests to HTTPS in Laravel 5

How to redirect requests to HTTPS in Laravel 5

I know we can achieve same with other methods but I am going do it with the Laravel's Middleware. So...

laravel - 5 years ago 1 minute read

How to install Laravel 5

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...

laravel - 5 years ago 1 minute read

How to create custom post types in Wordpress

How to create custom post types in Wordpress

Often clients ask for different content types in Wordpress. Creating custom post types in WordPress is a lot easier job....

wordpress - 5 years ago 1 minute read

Logging an Array in Laravel5

Logging an Array in Laravel5

In this post, I am going show logging arrays and viewing logged items in the terminal in a very generic...

laravel - 5 years ago 1 minute read

Devicecloud digi - API Authentication Example using PHP

Devicecloud digi - API Authentication Example using PHP

$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://devicecloud.digi.com/ws/v1/devices/inventory'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FLASE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FLASE); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD,...

php - 5 years ago 1 minute read

How to handle CORS in Laravel 5

How to handle CORS in Laravel 5

CORS stands for Cross-Origin Resource Sharing. Origin policy allows only the same origins to share data and this policy will...

laravel - 5 years ago 1 minute read

How to send Mails Using Queues in Laravel

How to send Mails Using Queues in Laravel

I have recently spent some time trying with Laravel queue system, in this tutorial I am going to show you...

laravel - 5 years ago 2 minute read

How to Establish a connection with XTRF WSDL SOAP API using PHP

How to Establish a connection with XTRF WSDL SOAP API using PHP

XTRF is one of the most popular and fastest growing management systems for translation agencies and corporate translation departments. There...

xtrf - 5 years ago 1 minute read

Laravel eloquent complex queries on relationships

Laravel eloquent complex queries on relationships

Very Laravel developer should know this little trick, using this trick you can define complex conditions on the eloquent relationships....

laravel - 5 years ago 1 minute read

WordPress admin panel custom landing page after login

WordPress admin panel custom landing page after login

Redirect to different landing page after successful login on wordpress admin panel, if user not a super admin. In your...

wordpress-code-snippets - 5 years ago 1 minute read

Yii2 get logged in user details

Yii2 get logged in user details

On successful login the user information will be stored in Yii::$app->user->identity variable. The authenticated user identity information can be retrieved...

yii2-code-snippets - 5 years ago 1 minute read

How to create custom widget in Yii2

How to create custom widget in Yii2

This tutorial will show you how you can create your own custom widget in Yii2. Widgets are reusable blocks and...

yii - 5 years ago 1 minute read

Css div 100% height

Css div 100% height

This tutorial will show you how to set 100% full height div with CSS with simple lines. The percentage (%)...

css - 5 years ago 1 minute read

Yii2 – GridView set default sort column

Yii2 – GridView set default sort column

This tutorial will teach you, setting default specific sort column for your GridView. With the following code, you can set...

yii - 5 years ago 1 minute read

How to send e-mail from YII2 Application

How to send e-mail from YII2 Application

Hi there, This tutorial will show you how to send emails from the yii2 application. Sending emails from the yii2...

yii - 5 years ago 1 minute read

How to use mPDF In Yiiframework 2

How to use mPDF In Yiiframework 2

Hello there, Today I would like to show you how to integrate mPDF library with Yii framework 2.First, let me...

yii - 5 years ago 1 minute read

How to create custom Component in Yii2

How to create custom Component in Yii2

Hi there, Today I would like to write a simple tutorial on creating custom Component in Yii2 and I will...

yii - 5 years ago 1 minute read

Yii2 Transaction

Yii2 Transaction

In this tutorial, I would like to show you how we can use transactions in YII2. A transaction is used...

yii - 5 years ago 1 minute read

How to make a drop down list in yii2?

How to make a drop down list in yii2?

In this tutorial, I would like to show you making the dropdown list in yii2 using different data sources like...

yii - 5 years ago 1 minute read

How to change XAMPP / Apache Port

How to change XAMPP / Apache Port

In this tutorial you’ll learn how to change XAMPP port. Follow the below shown steps, Open your XAMPP folder, access...

tips - 5 years ago 1 minute read

Fixing Database Connection working slow on windows 8

Fixing Database Connection working slow on windows 8

Today I just want to share one useful tip on fixing slow database connection issue on Windows 8 machines.Today I...

tips - 5 years ago 1 minute read

See if Value Exists in PHP Array

See if Value Exists in PHP Array

in_array() is the function to Check if a value exists in an array using PHP. Here is an example of...

php - 5 years ago 1 minute read

Tracking the script execution time in PHP

Tracking the script execution time in PHP

Hi there guys! Today I am going to share a very useful snippet that you can use to see the...

php-mysql - 5 years ago 1 minute read

Check if a domain is Registered with PHP

Check if a domain is Registered with PHP

Today I would like to share a very simple PHP code snippet that lets you know if a given specific...

php-mysql - 5 years ago 1 minute read

Increase PHP Script Execution Time Limit

Increase PHP Script Execution Time Limit

Today I would like to show you increasing PHP script execution time limit using ini_set() function. PHP default script execution...

php-mysql - 5 years ago 1 minute read

Magic Constants in PHP

Magic Constants in PHP

Today I would like to given quick introduction on PHP’s magic constants. PHP provides a set of predefined constants and...

php-mysql - 5 years ago 1 minute read

How to Compress Strings using PHP

How to Compress Strings using PHP

In this post I would like to talk about string compression in PHP. There are several algorithms out there which...

php-mysql - 5 years ago 1 minute read

MySQL max function

MySQL max function

In this tutorial you will learn how to get maximum value from the specified column of table using MySQL’s max()...

php-mysql - 5 years ago 1 minute read

PHP 7 – Closure

PHP 7 – Closure

Another cool new future in PHP 7 allows to bind a closure to a specific object on run-time with the...

php-mysql - 5 years ago 1 minute read

PHP7 – Static calls to non-static methods deprecated

PHP7 – Static calls to non-static methods deprecated

Calling non-static methods as static method has been deprecated in PHP7 and my be removed in the future versions. The...

php-mysql - 5 years ago 1 minute read

PHP7 – Group use Declarations

PHP7 – Group use Declarations

PHP 7 is improved current PHP namespace implementation by introducing the concept of Group Use. This is the one of...

php-mysql - 5 years ago 1 minute read

Unblocking Gmail SMTP Account for Sending Emails from Applications

Unblocking Gmail SMTP Account for Sending Emails from Applications

Hi there guys! We are going to look at a very simple trick that will save your time if GMail...

tips - 5 years ago 1 minute read

PHP7 – PHP Constants Containing Arrays

PHP7 – PHP Constants Containing Arrays

You can define a constant by using the define() function or by using the const keyword outside a class definition...

php-mysql - 5 years ago 1 minute read

PHP 7 – PHP 4-Style Constructors are Deprecated

PHP 7 – PHP 4-Style Constructors are Deprecated

PHP 4 constructors were preserved in PHP 5 alongside the new __construct().PHP 4 constructors are methods that have the same...

php-mysql - 5 years ago 1 minute read

PHP7 – Anonymous Classes

PHP7 – Anonymous Classes

Here I present an example and a short tutorial on anonymous classes in PHP.Anonymous classes are new to PHP which...

php-mysql - 5 years ago 1 minute read

How to create a while loop in php?

How to create a while loop in php?

PHP while loops execute a block of code while the specified condition is true.In PHP, we have the following while...

php-mysql - 5 years ago 1 minute read

Redirect domain to www on codeigniter ?

Redirect domain to www on codeigniter ?

RewriteEngine On #This bit rewrites your host name to include www RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,NC,L] #This...

codeigniter-code-snippets - 5 years ago 1 minute read

How to setup Multi-Environments in WordPress

How to setup Multi-Environments in WordPress

In this post, I would like to show you how to configure multiple environments in WordPress. By using this technique...

wordpress - 5 years ago 1 minute read

How to remove index.php from URL in Yii2

How to remove index.php from URL in Yii2

To remove the index.php, create a file called .htaccess at the root/web/ of your YII2 site. You can find out...

yii - 5 years ago 1 minute read

Adding an existing project or initial push to GitHub using the command line?

Adding an existing project or initial push to GitHub using the command line?

In this post I would like to show you ,How to Add an existing project to GitHub using the command...

git - 5 years ago 1 minute read

How to check if file exists in PHP?

How to check if file exists in PHP?

If you find yourself doing any kind of disk-based I/O with PHP, you’ll undoubtedly come across the need to verify...

php-mysql - 5 years ago 1 minute read

Abort A Previous Ajax Request In jQuery

Abort A Previous Ajax Request In jQuery

When using Ajax there will be changes ,where you will need to cancel the Ajax call. I found Aborting is...

jquery-2 - 5 years ago 1 minute read

How to bind events to models in Laravel 5?

How to bind events to models in Laravel 5?

In this post, I will explain about binding events to models in Laravel 5.Laravel’s Events feature is really cool. It...

laravel - 5 years ago 1 minute read

Glowing Anchor Links

Glowing Anchor Links

a { color: #00e; } a:visited { color: #551a8b; } a:hover { color: #06e; } a:focus { outline: thin dotted;...

css-snippets - 5 years ago 1 minute read

General Media Queries

General Media Queries

/* Smartphones (portrait and landscape) ----------- */ @media only screen and (min-device-width : 320px) and (max-device-width : 480px) { /*...

css-snippets - 5 years ago 1 minute read

CSS Blockquote Template

CSS Blockquote Template

blockquote { background: #f9f9f9; border-left: 10px solid #ccc; margin: 1.5em 10px; padding: .5em 10px; quotes: "\201C""\201D""\2018""\2019"; } blockquote:before { color:...

css-snippets - 5 years ago 1 minute read

Cross-Browser Transparency

Cross-Browser Transparency

.transparent { filter: alpha(opacity=50); /* internet explorer */ -khtml-opacity: 0.5; /* khtml, old safari */ -moz-opacity: 0.5; /* mozilla, netscape...

css-snippets - 5 years ago 1 minute read

vertical Center a DIV with CSS

vertical Center a DIV with CSS

#container { width: 400px; /* here you put the width that you need */ height: 200px; /* here you put...

css-snippets - 5 years ago 1 minute read

Style Links Based on Filetype

Style Links Based on Filetype

/* external links */ a[href^="http://"] { padding-right: 13px; background: url('external.gif') no-repeat center right; } /* emails */ a[href^="mailto:"] { padding-right:...

css-snippets - 5 years ago 1 minute read

Individual Rounded Corners

Individual Rounded Corners

#container { -webkit-border-radius: 4px 3px 6px 10px; -moz-border-radius: 4px 3px 6px 10px; -o-border-radius: 4px 3px 6px 10px; border-radius: 4px 3px...

css-snippets - 5 years ago 1 minute read

Disable Mobile Webkit Highlights

Disable Mobile Webkit Highlights

body { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }

css-snippets - 5 years ago 1 minute read

How to display posts outside of WordPress

How to display posts outside of WordPress

WordPress is built upon a collection of powerful core APIs. You can actually load the core APIs into any PHP...

wordpress - 5 years ago 1 minute read

Uploading file via FTP using CodeIgniter

Uploading file via FTP using CodeIgniter

We are going to discuss how to upload files to the remote server in CodeIgniter using CI’s FTP library. This...

codeigniter - 5 years ago 1 minute read

Auto complete text box with PHP, jQuery and MySql

Auto complete text box with PHP, jQuery and MySql

In this tutorial I would like to show you how easy to implement google like search auto complete text box...

php-mysql - 5 years ago 1 minute read

Checking if an element is hidden

Checking if an element is hidden

You can use the hidden,visible selector: The hidden selector: // Matches all elements that are hidden $('#myDiv').is(':hidden') The visible selector:...

javascript-jquery-snippets - 5 years ago 1 minute read

5  Inspiring Quotes by Dr APJ Abdul Kalam

5 Inspiring Quotes by Dr APJ Abdul Kalam

Some of the inspiring Quotes of Bharat Ratna Dr. APJ Abdul Kalam (missile man). 1) If you salute your duty,...

tips - 5 years ago 1 minute read

Traits in PHP

Traits in PHP

Traits are one of the most powerful feature introduced in PHP 5.4. It allow us to write maximum reusable code....

php-mysql - 5 years ago 3 minute read

List  all loaded extensions  in PHP

List all loaded extensions in PHP

Hey we can easily get names of all modules compiled and loaded in the PHP using PHP's built-in function called...

php-mysql - 5 years ago 1 minute read

Laravel - Dropdowns with Collection's Lists method

Laravel - Dropdowns with Collection's Lists method

The Collection class in Laravel is really awesome. In Laravel, Eloquent returns result in the collection object. The class contains...

laravel - 5 years ago 1 minute read

Allow Cross Domain Fonts with CORS

Allow Cross Domain Fonts with CORS

Some browsers like IE doesn't allow cross-domain fonts by default - unless you set a Access-Control-Allow-Origin header to the font....

apache - 5 years ago 1 minute read

laravel 5 controller get url parameters

laravel 5 controller get url parameters

The Request facade will grant you access to the current request that is bound in the container.Remember, if you are...

laravel - 5 years ago 1 minute read

Laravel 5 render a view and store it's contents in a variable

Laravel 5 render a view and store it's contents in a variable

Sometimes you may want send the rendered view in the ajax response instead of showing on the browser. To return...

laravel - 5 years ago 1 minute read

Sending Emails With PHPMailer using GoDaddy SMTP Settings

Sending Emails With PHPMailer using GoDaddy SMTP Settings

In this post I just want to show you how to send emails using PHPMailer with GoDaddy SMTP details. Godaddy...

php-mysql - 5 years ago 1 minute read

Laravel 5 Eloquent - Attribute casting

Laravel 5 Eloquent - Attribute casting

One of the Laravel 5 awesome feature is Attribute casting. Casting attribute means changing the attribute values to a particular...

laravel - 5 years ago 1 minute read

Capitalize the first letter of a string in javascript

Capitalize the first letter of a string in javascript

var capitalizeMe = "capitalize the first letter of a string in javascript"; var capitalized = capitalizeMe[0].toUpperCase() + capitalizeMe.substring(1); console.log(capitalized); //...

javascript-jquery-snippets - 5 years ago 1 minute read

Check if two arrays are equal

Check if two arrays are equal

php - 5 years ago 1 minute read

Flatten Nested Arrays Using PHP

Flatten Nested Arrays Using PHP

In this post I would like to share with you code snippet, which you can use to flatten nested array...

php-mysql - 5 years ago 1 minute read

Login Throttling in Laravel 5.1

Login Throttling in Laravel 5.1

  Login Throttling is also called rate limiting which is very useful to increase the security of the application by...

laravel - 5 years ago 1 minute read

PHP - Displaying money with currency symbol

PHP - Displaying money with currency symbol

You often have to display money numbers in business applications like eCommerce apps. So in general we fetch the value...

php-mysql - 5 years ago 1 minute read

Excluding Routes from the CSRF Middleware in Laravel 5.1

Excluding Routes from the CSRF Middleware in Laravel 5.1

Laravel 5.1 makes it easy to disabling CSRF token check.Sometimes you may wish to exclude a set of URIs from...

laravel - 5 years ago 1 minute read

Ruby on Rails Framework basic tutorial

Ruby on Rails Framework basic tutorial

From Ruby on Rails developers "Ruby on Rails® is an open-source web framework that’s optimized for programmer happiness and sustainable...

ruby-on-rails-framework - 5 years ago 1 minute read

MySQL trim function

MySQL trim function

In this post I would like to write about MySQL trim()function.MySQL trim() function removes the specified characters from beginning and...

php-mysql - 5 years ago 1 minute read

MySQL LOWER() and UPPER() Functions

MySQL LOWER() and UPPER() Functions

You can use either the MySQL UPPER() or LOWER() functions to format columns in your SQL SELECT statements or you...

php-mysql - 5 years ago 1 minute read

PHP Variables to JavaScript Variables in CodeIgniter

PHP Variables to JavaScript Variables in CodeIgniter

Often, you'll find yourself in situations, where you want to pass some server-side string/array/whatever to your JavaScript. Traditionally, this can...

codeigniter - 5 years ago 1 minute read

Checking a checkbox with jQuery?

Checking a checkbox with jQuery?

$(".myCheckbox").attr('checked', true); // Deprecated $(".myCheckbox").prop('checked', true); Check if the checkbox is checked There are several ways to get to work...

javascript-jquery-snippets - 5 years ago 1 minute read

Laravel 5 Eloquent lazy eager loading

Laravel 5 Eloquent lazy eager loading

Sometimes you may need to eager load a relationship after the parent modal has already been retrieved. For Example this...

laravel - 5 years ago 1 minute read

Getting all tables inside a database using Laravel

Getting all tables inside a database using Laravel

Here is the simple code snippet to get all the tables under the database in laravel framework. $tables = DB::select('SHOW...

laravel-code-snippets - 5 years ago 1 minute read

Where NOT in Eloquent join Relation

Where NOT in Eloquent join Relation

Here is the simple laravel's eloquent code snippet to get results in a table when there are no results for...

laravel - 5 years ago 1 minute read

How to change app name in Yii2

How to change app name in Yii2

Yii2 Default application name is "My Application". You can change this name by editing the config/main.php. Just add the application...

yii - 5 years ago 1 minute read

How to make a drop down list in yii2

How to make a drop down list in yii2

In this post, I would like to show you how to create a drop-down list in yii2. This tutorial will...

yii - 5 years ago 1 minute read

Redirect a page using jQuery?

Redirect a page using jQuery?

var url = 'http://www.arjunphp.com/'; $(location).attr('href',url);

javascript-jquery-snippets - 5 years ago 1 minute read

Type Identifiers Functions in PHP

Type Identifiers Functions in PHP

Here is the list of type checking function in PHP. Function Description is_array() Check for array type is_bool() Check for...

php-mysql - 5 years ago 1 minute read

How to read a file line by line in php

How to read a file line by line in php

You can use the fgets() function with combination of fopne() funciton to read the file line by line. $filename =...

php - 5 years ago 1 minute read

The Template Method Pattern

The Template Method Pattern

Template pattern comes under behavior pattern group, as it's used to manage algorithms, relationships and responsibilities between objects. This is...

design-pattern - 5 years ago 1 minute read

PHP7 - Removed alternative PHP tags

PHP7 - Removed alternative PHP tags

The alternative PHP tags <% (and <%=), %>, <script language="php">, and </script> have been removed in PHP7. Additionally the asp_tags...

php-mysql - 5 years ago 1 minute read

Custom Facebook Share Button without FB-OG Tags

Custom Facebook Share Button without FB-OG Tags

Nowadays you can find Facebook "Like" and "Recommend" widgets on every website. One problem I have always found with sharing...

html - 5 years ago 1 minute read

Getting started with Meteor.js

Getting started with Meteor.js

Meteor makes it simple to develop real-time web apps in a matter of hours.Meteor.js is an open-source platform build on...

meteor-js - 5 years ago 1 minute read

Send files via cURL in PHP 5.5+

Send files via cURL in PHP 5.5+

In this post I would like to show you file uploading via cURL. cURL is a great glaring library. It...

php-mysql - 5 years ago 1 minute read

PHP 7 - Null Coalesce Operator

PHP 7 - Null Coalesce Operator

One more new operator from glaring PHP7, couple of days back I wrote about php7 spaceship operator , now I...

php-mysql - 5 years ago 1 minute read

PHP 7 - Removed deprecated functionality

PHP 7 - Removed deprecated functionality

Blow are the some of the deprecated functionalities which are removed from the PHP7 as for RFC. 1. ext/ereg (deprecated...

php-mysql - 5 years ago 1 minute read

PHP Closures and Anonymous functions

PHP Closures and Anonymous functions

Anonymous functions are also known as Lambda functions. Lambda function and closures are the functions with no name. Anonymous functions...

php-mysql - 5 years ago 1 minute read

PHP Generator

PHP Generator

Generators compute and yield iteration values on-demand unlike regular PHP iterators. Means generator returns a sequence of values with yield...

php-mysql - 5 years ago 1 minute read

MySQL Triggers

MySQL Triggers

A trigger is a named database object that is associated with a table, which performs their own operation automatically when...

php-mysql - 5 years ago 1 minute read

php7 <=> spaceship operator

php7 <=> spaceship operator

Spaceship operator() also know as Combined Comparison Operator. Basically this operator will offer combined comparison means, it will do greater-than,...

php-mysql - 5 years ago 1 minute read

How to turn off MySQL strict mode?

How to turn off MySQL strict mode?

Follow the below mentioned instructions to turn off or to disable the MySQL strict mode. This can be fixed in...

php-mysql - 5 years ago 1 minute read

Injecting data With Blade

Injecting data With Blade

// categoriesCount.blade.php @inject('categories','App\categories') Total categories : {{ $categories->count(); }} or // routes.php view::composer('categories',function($view){ $view->with('categories','App\categories'); }); // categoriesCount.blade.php Total categories :...

laravel-code-snippets - 5 years ago 1 minute read

Named Route Groups

Named Route Groups

Route::get('admin/home',['as' => 'home',function(){ echo 'admin home'; }]); // view echo route('home'); // output : http://localhost/admin/home Route::group(['prefix' => 'admin'],function(){ Route::get('home',['as' =>...

laravel-code-snippets - 5 years ago 1 minute read

MySQL Replace

MySQL Replace

Replace() is one of the MySQL string function, It will search with the given string and REPLACE or UPDATE in...

php-mysql - 5 years ago 1 minute read

Change MySQL Root Password

Change MySQL Root Password

Below are the steps to change MySQL user passwood, Setup for first time the root password: mysqladmin -u root password...

php-mysql - 5 years ago 1 minute read

How to upload files in Laravel 5

How to upload files in Laravel 5

Uploading files in Laravel very easy ,You just need to create two routes one is for form view another one...

laravel - 5 years ago 1 minute read

How to use Dropzone Js with Laravel 5

How to use Dropzone Js with Laravel 5

In this post I would like to show you, how to upload files with drag and drop interface with dropzone.js...

laravel - 5 years ago 1 minute read

AngularJS and Laravel5: Retrieve data from the database

AngularJS and Laravel5: Retrieve data from the database

Today I would will like to show you how to use Angular JS in Laravel5 and I will show you...

laravel - 5 years ago 1 minute read

Namespace in JavaScript

Namespace in JavaScript

In this post i would like to explain about JavaScript Namespaces. Namespaces is nothing but grouping different functionality under the...

javascript - 5 years ago 1 minute read

JQuery Foreach Example

JQuery Foreach Example

Foreach provides easy way to iterate over the arrays, objects. Foreach is the most important control structure in any language....

jquery-2 - 5 years ago 1 minute read

Getting file information with PHP

Getting file information with PHP

we can read a file's metadata for example, permissions and ownership with PHP's stat() function, Which returns information about a...

php-mysql - 5 years ago 1 minute read

PHP FilterIterator Example

PHP FilterIterator Example

This abstract iterator filters out unwanted values. This class should be extended to implement custom iterator filters. The FilterIterator::accept() must...

php-mysql - 5 years ago 1 minute read

JavaScript - encodeURI() vs encodeURIComponent()

JavaScript - encodeURI() vs encodeURIComponent()

The purpose of the tutorial is to show you the differences between encodeURI() and encodeURIComponent() functions. encodeURIComponent() This method will...

javascript - 5 years ago 1 minute read

Google Drive as Free CDN?

Google Drive as Free CDN?

CDN stands for Content Delivery Network. The goal of a CDN is to serve content to end-users with high availability...

tips - 5 years ago 1 minute read

Check if an IP address is private with PHP?

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...

php-mysql - 5 years ago 1 minute read

Create and download CSV files using PHP

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...

php-mysql - 5 years ago 1 minute read

Selection styling with CSS

Selection styling with CSS

One of the little known styling options is selection text styling with in the browser.Yes, it is possible to define...

css - 5 years ago 1 minute read

Placeholder styling with CSS

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...

css - 5 years ago 1 minute read

Genuine ways to stay motivated

Genuine ways to stay motivated

Success and achievement have different meanings for different people. In the quest for money, good jobs, top positions and materialistic...

tips - 5 years ago 2 minute read

CodeIgniter _remap function?

CodeIgniter _remap function?

CodeIgniter permits you to override its default routing behavior through the use of the _remap() function. As you already knew...

codeigniter - 5 years ago 1 minute read

How to check / uncheck all check boxes using jQuery?

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...

jquery-2 - 5 years ago 1 minute read

Form Validation in Laravel5: The Right Way

Form Validation in Laravel5: The Right Way

Laravel 5.0 introduces Form Requests, which are a special type of class devoted to validating and authorizing form submissions. Each...

laravel - 5 years ago 1 minute read

How to hide the PHP extension from the URLs?

How to hide the PHP extension from the URLs?

In this tutorial I want to explain about hiding .php extension with URL rewriting with htaccess. What is .htaccess An...

php-mysql - 5 years ago 1 minute read

Google New reCaptcha using PHP – Are you a Robot?

Google New reCaptcha using PHP – Are you a Robot?

Recently Google has been introduced new reCaptcha API called “Are you a robot?”. “No Captcha reCaptcha” a complete new design...

php-mysql - 5 years ago 1 minute read

Get table column names as array from Eloquent model

Get table column names as array from Eloquent model

class NewMediaModel extends Model { public function getTableColumns() { return $this->getConnection()->getSchemaBuilder()->getColumnListing($this->getTable()); } }

laravel-code-snippets - 5 years ago 1 minute read

Show All Validation Errors in Laravel's Blade View

Show All Validation Errors in Laravel's Blade View

@if($errors->has()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif

laravel-code-snippets - 5 years ago 1 minute read

Laravel dynamic Body Class ?

Laravel dynamic Body Class ?

By adding dynamic body class to html pages we can get the flexibility of easily modifying the look of the...

laravel - 5 years ago 1 minute read

Combine two DB query results in Laravel?

Combine two DB query results in Laravel?

We can merge easily laravel's query result with another result object, by using laravel's Collections method called merge(), It will...

laravel - 5 years ago 1 minute read

Laravel - Get the full name of a User using Eloquent accessors

Laravel - Get the full name of a User using Eloquent accessors

Almost in all projects we face this situation where we have first name and last name in two different fields...

laravel - 5 years ago 1 minute read

Web Notifications API

Web Notifications API

Web notifications API was designed to display END user notifications(desktop notifications), which allows alerting the user outside the context of...

javascript - 5 years ago 1 minute read

Sending Email in Laravel Application?

Sending Email in Laravel Application?

Sending Emails is very important requirement of the almost all modern web applications. Sending Emails in Laravel Based applications is...

laravel - 5 years ago 1 minute read

How to Detect Ajax Request in Laravel 4

How to Detect Ajax Request in Laravel 4

Laravel’s Request class provides many methods for reading the HTTP request of the current request. One of these function is...

laravel - 5 years ago 1 minute read

How to remove specific element from an array in PHP?

How to remove specific element from an array in PHP?

Here is the simple quick post about removing specific element from an array using php.In this example we are going...

php-mysql - 5 years ago 1 minute read

Creating  and Retrieving  Cookie in Laravel ?

Creating and Retrieving Cookie in Laravel ?

For Creating cookies in Laravel we use Cookie::make() method and for reading cookie we use Cookie::get() method. Basically the Cookie::get()...

laravel - 5 years ago 1 minute read

Define Variable In Blade Templates Laravel?

Define Variable In Blade Templates Laravel?

Blade did not provided a way to define variables.But you can extend blade by using extend method as shown below...

laravel - 5 years ago 1 minute read

Using Query Scopes in Laravel?

Using Query Scopes in Laravel?

Today i would like to write about Laravel Eloquent's Query Scopes , Query scopes are allow us to re-use query...

laravel - 5 years ago 1 minute read

How to use array_map() with class method?

How to use array_map() with class method?

Using array_map() function is pretty simple in procedural style coding in PHP, while coding in object oriented fashion is also...

php-mysql - 5 years ago 1 minute read

Redirect back to original destination after login in  Laravel

Redirect back to original destination after login in Laravel

In this post i want to show you some basic tips for redirecting user back to original destination path or...

laravel - 5 years ago 1 minute read

PHP array_map for multidimensional arrays

PHP array_map for multidimensional arrays

Array map is one of the interesting PHP's array function. But it will not work with multidimensional arrays as expected.So...

php-mysql - 5 years ago 1 minute read

Force Git to overwrite local files on pull

Force Git to overwrite local files on pull

git fetch downloads the latest from remote without trying to merge or rebase anything. Then the git reset resets the...

git - 5 years ago 1 minute read

Extend Eloquent Model with created_by, updated_by ?

Extend Eloquent Model with created_by, updated_by ?

By extending Eloquent we can inherits all of the existing functionality to our model. By Extending newly created Base Model...

laravel - 5 years ago 1 minute read

Better way to check variable for null or empty string?

Better way to check variable for null or empty string?

Here is the simple PHP function for testing given data is null or empty string. function IsNullOrEmptyString($data){ return (!isset($data) ||...

php - 5 years ago 1 minute read

Highlight the Current Page in Navigation in Laravel Application

Highlight the Current Page in Navigation in Laravel Application

We can achieve this in several way , but i would like to share this below approach because it is...

laravel - 5 years ago 1 minute read

How to write Sub Queries in Codeigniter Active Record  ?

How to write Sub Queries in Codeigniter Active Record ?

Codeigniter didn’t provide an option to use subqueries with active record class. So today I would like to provide simple...

codeigniter - 5 years ago 1 minute read

Zend Framework 2 Advanced database operations ?

Zend Framework 2 Advanced database operations ?

In this post i would like to list basic to advanced database queries using ZF2. I am gonna use TableGateway...

zend-framework-2 - 6 years ago 4 minute read

Increase MySQL Connections Limit

Increase MySQL Connections Limit

Recently i got "too many connections" errors in MySQL, after quick research i found a solution to fix this issue.This...

php-mysql - 6 years ago 1 minute read

Dependent Dropdown List with AngularJS

Dependent Dropdown List with AngularJS

Here the simple AngularJS tutorial on creating Cascading DropDownList with Angular JS. function CountryController($scope) { $scope.countries = { 'India': {...

angularjs - 6 years ago 1 minute read

How to assign alternate class to rows in Angular JS?

How to assign alternate class to rows in Angular JS?

In this post i would like to write about Angular JS ngClassOdd,ngClassEven directives , by using this directories we can...

angularjs - 6 years ago 1 minute read

How to Change port in XAMPP

How to Change port in XAMPP

By default Xampp server is run on 80 port, if you want to change this port to something, just follow...

apache - 6 years ago 1 minute read

Export and Import an Individual MySQL Table from command line

Export and Import an Individual MySQL Table from command line

While moving databases from development to production and vice versa it is sometimes necessary to export individual tables so that...

php-mysql - 6 years ago 1 minute read

MySQL copy table to another database

MySQL copy table to another database

Syntax to copy one existent MySQL table from one database to another database: CREATE TABLE `new_database`.`table` SELECT * FROM `old_database`.`table`;...

php-mysql - 6 years ago 1 minute read

Create Index in the MySQL Table

Create Index in the MySQL Table

Indexes allow the database application to find data fast, without reading the whole table.The CREATE INDEX statement is used to...

php-mysql - 6 years ago 1 minute read

How to install Intl extension in Xampp ?

How to install Intl extension in Xampp ?

The PHP Internationalization extension is used in almost all modern frameworks. The extension is useful for formatting currency, number and...

php-mysql - 6 years ago 1 minute read

YII - The mcrypt PHP extension is not installed.

YII - The mcrypt PHP extension is not installed.

Recently i tried to install YII2 ,i got "The mcrypt PHP extension is not installed." error. In this post, I...

apache - 6 years ago 1 minute read

How to return JSON response in Zend framework 2

How to return JSON response in Zend framework 2

In this post, I just want to show you how to return the response in JSON format in the correct...

zend-framework-2 - 6 years ago 1 minute read

Detect Current Mouse Coordinates using JQuery

Detect Current Mouse Coordinates using JQuery

Here is the simple JQuery script snippet for detecting current mouse coordinates using JQuery function. $(document).mousemove(function(e){ console.log("X = " +...

javascript-jquery-snippets - 6 years ago 1 minute read

How to detect robots and spiders with PHP?

How to detect robots and spiders with PHP?

Here is the simple function for detecting spiders and robots. It will return true or false. function is_bot(){ $bots =...

php - 6 years ago 1 minute read

Embed YouTube video in Powerpoint

Embed YouTube video in Powerpoint

Generally, you can easily embed a youtube video into your powerpoint presentation but unfortunately, iframe style embed is not working...

tips - 6 years ago 1 minute read

How to generate random string PHP

How to generate random string PHP

Generating random strings can be very useful in lot of cases.It might be for a verification code or a password...

php-mysql - 6 years ago 1 minute read

How to check if multiple element are in an array using PHP

How to check if multiple element are in an array using PHP

We generally use in_array function to check if an element is in array or not , but this function does...

php-mysql - 6 years ago 1 minute read

File Upload using Uplodify in Codeigniter?

File Upload using Uplodify in Codeigniter?

In this Codeigniter tutorial, I will show you how to use Uplodify(HTML5 or Flash Multiple File Upload jQuery Plugin Script)...

codeigniter - 6 years ago 1 minute read

How to retrieve data from database in CodeIgniter?

How to retrieve data from database in CodeIgniter?

In this CodeIgniter tutorial, I will show you how to fetch data from database using model, view, controller approach. As...

codeigniter - 6 years ago 1 minute read

PHP Geoplugin API -  Find location with IP address

PHP Geoplugin API - Find location with IP address

In this post i will show you, how to find the location based on the ip of the client. We...

php-mysql - 6 years ago 1 minute read

WordPress wp_nav_menu with Twitter Bootstrap 3

WordPress wp_nav_menu with Twitter Bootstrap 3

Today's post is about generating Twitter Bootstrap 3 HTML markup using WordPress's menu component function wp_nav_menu(). Below are the HTML...

wordpress - 6 years ago 1 minute read

Validations in PHP using validate filters

Validations in PHP using validate filters

In the beginning of career i used to write regular expression or long lines of code for validating and sanitizing...

php-mysql - 6 years ago 1 minute read

Custom filters in AngularJS

Custom filters in AngularJS

This tutorial will show you, creating your own custom filters in AngularJS with simple steps and example. Angular filters provides...

angularjs - 6 years ago 1 minute read

How to use Qualtrics REST API with PHP ?

How to use Qualtrics REST API with PHP ?

About Qualtrics :Qualtrics API allows applications to integrate survey functionality, with specification of questions to ask, conditional display of questions...

php-mysql - 6 years ago 1 minute read

AngularJS and Codeigniter : Retrieve data from the database

AngularJS and Codeigniter : Retrieve data from the database

Here I would will like to show you how to use Angular JS in CodeIgniter and I will show you...

angularjs - 6 years ago 1 minute read

How to Prevent hotlinking?

How to Prevent hotlinking?

Here i will show you how to prevent hot linking of images and other file types.This can greatly impact bandwidth...

php-mysql - 6 years ago 1 minute read

Email validation using Javascript

Email validation using Javascript

Here is the code snippet for validating email using JavaScript function IsEmail(email) { var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; return regex.test(email); }

javascript-jquery-snippets - 6 years ago 1 minute read

Highlight current menu item in PHP

Highlight current menu item in PHP

Here is the example snippet for highlighting current menu item using php.

php - 6 years ago 1 minute read

codeigniter ajax username/email availability check using JQuery

codeigniter ajax username/email availability check using JQuery

Here is the simple script to check live username or email availability using jQuery's Ajax method in CodeIgniter. you can...

codeigniter - 6 years ago 1 minute read

jQuery Copy To Clipboard

jQuery Copy To Clipboard

ZeroClipboard is a library that provides you with a way of coping text to your clipboard using Adobe flash and...

jquery-2 - 6 years ago 1 minute read

Reading emails from gmail using PHP & IMAP

Reading emails from gmail using PHP & IMAP

Recently i have worked on language translation project for that i need to read emails using PHP From the gamil...

php-mysql - 6 years ago 2 minute read

Laravel Bootstrap Alert macro

Laravel Bootstrap Alert macro

Laravel allowing us to extend the HTML facade with additional functionality. we use the HTML::macro() method to extend the HTML...

laravel - 6 years ago 1 minute read

Wordpress restrict a specific word from post title?

Wordpress restrict a specific word from post title?

function titleRestrictionFilter($title){ global $post; $title = $post->post_title; $restrictedWord = "forbidden"; if (stristr( $title, $restrictedWord)) wp_die( __('Error: This title is containing...

wordpress-code-snippets - 6 years ago 1 minute read

Wordpress limit character in the post title

Wordpress limit character in the post title

function titleLimitChar($title){ if(strlen($title) > 55 && !(is_single()) && !(is_page())){ // not in single post page and page. $title = substr($title,0,55)...

wordpress-code-snippets - 6 years ago 1 minute read

Error reporting handling in Codeigniter

Error reporting handling in Codeigniter

CodeIgniter default environment is development and so error reporting by default in turn on state, if you want to turn...

codeigniter - 6 years ago 1 minute read

PHP Frameworks git urls

PHP Frameworks git urls

CodeIgniter : https://github.com/bcit-ci/CodeIgniter.git

php - 6 years ago 1 minute read

Laravel Facebook Open Graph Macro

Laravel Facebook Open Graph Macro

Here is a custom HTML macros for Facebook Open Graph meta tags. if you don't had any idea about FB...

laravel - 6 years ago 1 minute read

Find and replace text in table using MySQL query

Find and replace text in table using MySQL query

There are times when you have huge data in table , and you my want to replace some text with...

php-mysql - 6 years ago 1 minute read

Twitter bootsrap3 class list

Twitter bootsrap3 class list

Here is the class list of Twitter bootsrap3 .navbar .caret .label .table .img-responsive .img-rounded .img-thumbnail .img-circle .sr-only .lead .text-muted .text-primary...

1 minute read

JQuery Ajax form submit Example

JQuery Ajax form submit Example

Sending Ajax requests to server with JQuery library is pretty easy. We just need to include JQuery in your page...

jquery-2 - 6 years ago 1 minute read

Codeigniter get controller,Action name in helper

Codeigniter get controller,Action name in helper

$ci =& get_instance(); // instance of the CI super variable $ci->router->fetch_class(); // for controller name $ci->router->fetch_method(); // for method name

codeigniter-code-snippets - 6 years ago 1 minute read

How to get Controller, Action name in CodeIgniter ?

How to get Controller, Action name in CodeIgniter ?

$this->router->fetch_class(); // class = controller $this->router->fetch_method(); // action = method

codeigniter-code-snippets - 6 years ago 1 minute read

PHP method chaining

PHP method chaining

Method chaining means that you can chain method calls in one single statement.All the methods are mutator methods which will...

php-mysql - 6 years ago 1 minute read

Get the real  width & height of an Image

Get the real width & height of an Image

var image = document.getElementById('my_image'); var width = image.naturalWidth; var height = image.naturalHeight;

php - 6 years ago 1 minute read

Get Current File Name

Get Current File Name

echo $currentScriptFileName = basename($_SERVER['PHP_SELF']); // My Output : main.php echo $currentScriptFileName = echo basename(__FILE__); // My Output : main.php

php - 6 years ago 1 minute read

How to import large databases in MySQL?

How to import large databases in MySQL?

While moving your web application to new host , you may get errors while importing large database into new hosting...

php-mysql - 6 years ago 1 minute read

Hide the mouse cursor with CSS

Hide the mouse cursor with CSS

Hiding the mouse cursor on the page or element is really not a useful thing in reality.Here I just want...

css - 6 years ago 1 minute read

How to configure multiple databases in zf2

How to configure multiple databases in zf2

Configuring multiple databases adapters in zf2 is pretty easy. In this post i will show you how to configure and...

zend-framework-2 - 6 years ago 1 minute read

Baisc Twitter Bootstrap 3 Template

Baisc Twitter Bootstrap 3 Template

This is a basic Twitter Bootstrap 3 template that I use most of the time for Twitter Bootstrap 3 based...

1 minute read

WordPress remove specific categories posts from the Loop

WordPress remove specific categories posts from the Loop

<?php query_posts('cat=-1'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?>         <h3></h3>                  <p><?php the_time('F jS, Y') ?></p>         ...

wordpress-code-snippets - 6 years ago 1 minute read

How to get the post thumbnail URL in WordPress

How to get the post thumbnail URL in WordPress

In this tutorial, i will show you how to get the post thumbnail URL in WordPress.Generally we use the_post_thumbnail(); function...

wordpress - 6 years ago 1 minute read

Wordpress Remove Script & Stylesheet Versions

Wordpress Remove Script & Stylesheet Versions

In this post i will show you how to remove the version parameter from scripts and stylesheets enqueued by WordPress's...

wordpress - 6 years ago 1 minute read

How to  JOIN Tables in Codeigniter

How to JOIN Tables in Codeigniter

I am gonna use CodeIgniter's active record class to generate Join Queries in this tutorial. Because by using AR class...

codeigniter - 6 years ago 1 minute read

Insert multiple rows with CodeIgniter

Insert multiple rows with CodeIgniter

In this post, I will show you how to insert multiple rows in CodeIgniter by using CI's active records library....

codeigniter - 6 years ago 1 minute read

PHP Page Redirect

PHP Page Redirect

In this tutorial, i would like to show you how to redirect in PHP.We use header() function in PHP to...

php-mysql - 6 years ago 1 minute read

Codeigniter Image Watermark

Codeigniter Image Watermark

You can easily watermark images in CodeIgniter by using CI's image manipulation class. In CI Watermarking is only available using...

codeigniter - 6 years ago 1 minute read

How to Use Composer With Codeigniter

How to Use Composer With Codeigniter

Composer: Composer is an application-level dependency manager for the PHP programming language that provides a standard format for managing dependencies...

codeigniter - 6 years ago 1 minute read

How to delete files and directories in Unix/Linux

How to delete files and directories in Unix/Linux

In order to remove, delete or unlink files in Unix/Linux operating system we need to use the rm command. Syntax...

unixlinux - 6 years ago 1 minute read

Redirect all pages to new domain with Htaccess

Redirect all pages to new domain with Htaccess

if you want to change your domain name without affecting SEO Ranking in search engines than you should think about...

apache - 6 years ago 1 minute read

How to create an array from a CSV file using PHP?

How to create an array from a CSV file using PHP?

In this post i will show you how to read CSV file with PHP. CSV is a type of file....

php-mysql - 6 years ago 1 minute read

Check if Object is empty in Javascript

Check if Object is empty in Javascript

To check if an object is empty in JQuery we use jQuery.isEmptyObject( object ) with will return true on success...

javascript - 6 years ago 1 minute read

How to authenticate to XTRF using REST API with PHP, CURL

How to authenticate to XTRF using REST API with PHP, CURL

Today I would like to write about Authenticating to XTRF using Rest API with PHP. After authenticating we can manage...

xtrf - 6 years ago 1 minute read

How to use PHPExcel with CodeIgniter?

How to use PHPExcel with CodeIgniter?

PHPExcel is a pure PHP library for reading and writing spreadsheet files and CodeIgniter is one of the well known...

codeigniter - 6 years ago 3 minute read

Format Phone Number using PHP

Format Phone Number using PHP

Below is a tiny function that will take any 10 digit number and convert it into the following phone format:...

php-mysql - 6 years ago 1 minute read

Generating a PDF in Codeigniter using mPDF

Generating a PDF in Codeigniter using mPDF

Hey, today I will show you integrating mPDF into CodeIgniter Application. mPDF is a PHP Class, by using this we...

codeigniter - 6 years ago 1 minute read

Generating alphanumeric unique ID in codeigniter

Generating alphanumeric unique ID in codeigniter

Today i will show you how to generate alphanumeric unique ID using Codeigniter. Some times there is requirement to generate...

codeigniter - 6 years ago 1 minute read

Removing Whitespace from String using JQuery

Removing Whitespace from String using JQuery

JQuery provides trim method it works like Javascript trim method, it will remove all the whitespace(tab,newline characters) characters from the...

jquery-2 - 6 years ago 1 minute read

Twitter Bootstrap Style Breadcrumb In Codeigniter

Twitter Bootstrap Style Breadcrumb In Codeigniter

Today I would like to write about Generating Breadcrumb in Codeigniter.After generating it, we gonna apply Twitter Bootstrap Styles to...

codeigniter - 6 years ago 1 minute read

How to copy files recursively using PHP ?

How to copy files recursively using PHP ?

In my previous post , i just wrote about copying file from one folder to another folder. Now i want...

php-mysql - 6 years ago 1 minute read

how to copy a file from one folder to another with php?

how to copy a file from one folder to another with php?

Today i will show you how to copy file from one folder to another or same folder.We can easily create...

php-mysql - 6 years ago 1 minute read

How to Unpack a Zip File using PHP?

How to Unpack a Zip File using PHP?

In this post i will show you how easily we can unzip a zip file using PHP. I am gonna...

php-mysql - 6 years ago 1 minute read

Base Model In CodeIgniter

Base Model In CodeIgniter

I always use this Base Model for My CodeIgniter App Development, It makes my app portable and flexible.We can define...

codeigniter - 6 years ago 1 minute read

How to prevent multiple form submissions in PHP?

How to prevent multiple form submissions in PHP?

Sometimes user may hit submit button twice or user may reload the page(with post data), This both activities make form...

php-mysql - 6 years ago 1 minute read

Convert Array To Object With PHP

Convert Array To Object With PHP

Converting array to object with PHP is merely simple for normal array , bit complicated for multidimensional array. Here i...

php-mysql - 6 years ago 1 minute read

How to get domain name from URL

How to get domain name from URL

Below is the simple function for getting host name form the URL, it will extract the URL as array and...

php-mysql - 6 years ago 1 minute read

Dynamic Year Dropdown List

Dynamic Year Dropdown List

Here is a snippet of PHP code to create a dynamic Dropdown form field which contain years in the Dropdown...

php-mysql - 6 years ago 1 minute read

CodeIgniter Helper :: Quick Dynamic DropDown Select Box ?

CodeIgniter Helper :: Quick Dynamic DropDown Select Box ?

This post is about Quick and Easy Drop-down HTML Select box element generation with custom CI helper function(CI helper file...

codeigniter - 6 years ago 1 minute read

How to Create and Parse JSON Data in PHP?

How to Create and Parse JSON Data in PHP?

This is a quickie simple post on how to create and parse the JSON(Java Script object notion) data format of...

php-mysql - 6 years ago 1 minute read

Twitter Bootstrap Modal Box as Dialog Boxes

Twitter Bootstrap Modal Box as Dialog Boxes

Bootbox.js is a small JavaScript library which allows you to create programmatic dialog boxes using Bootstrap modals, without having to...

javascript - 6 years ago 1 minute read

 CodeIgniter send and retrieve data using flash messages ?

CodeIgniter send and retrieve data using flash messages ?

I am gonna teach you about CodeIgniter flash messages. CI's flash sessions functionality  let us to use the data for...

codeigniter - 6 years ago 2 minute read

How To Get All Files Of Directory as array in CodeIgniter?

How To Get All Files Of Directory as array in CodeIgniter?

Today i want to show you how to use codeigniter directory helper for getting list of files as array from...

codeigniter - 6 years ago 1 minute read

Best way to Insert multiple rows in a table using PHP/MySQL

Best way to Insert multiple rows in a table using PHP/MySQL

In this tutorial I will show you ,How to insert multiple rows productively into a table with single SQL Query...

php-mysql - 6 years ago 1 minute read

Twitter Bootstrap3 Media Queries

Twitter Bootstrap3 Media Queries

Bootstrap 3 is a mobile-first front-end framework. I’ve included the correct order for the Media Queries below, but I’ve also...

1 minute read

How to create your own controller plugin in ZF2?

How to create your own controller plugin in ZF2?

Our step-by-step guide explains how you can create your own controller plugin in zf2.Fortunately creating controller plugin is very easy...

zend-framework-2 - 6 years ago 1 minute read

How to Comment Your PHP Code?

How to Comment Your PHP Code?

PHP allows three different methods of formatting comments. Comments are generally known as single line and multiple line Comments.A comment...

php-mysql - 6 years ago 1 minute read

How to modify data before saving it into database in yii?

How to modify data before saving it into database in yii?

we sometimes need to modify user submitted data or based on user submitted data we need to do some calculation...

yii - 6 years ago 1 minute read

How to display image in CGridView in YII

How to display image in CGridView in YII

This post is a simple example of showing images in CGridView in Yii.Imagine that you have an image field in...

yii - 6 years ago 1 minute read

How to connect to MySQL database in CodeIgniter?

How to connect to MySQL database in CodeIgniter?

Yesterday someone asked me to make a tutorial about Connecting to Database in CodeIgniter Framework. In order to make connection...

codeigniter - 6 years ago 1 minute read

How to Remove Directories Recursively with PHP ?

How to Remove Directories Recursively with PHP ?

You can't delete non-empty directories with one of PHPs own functions so in order to delete Directories Recursively just fallow...

php-mysql - 6 years ago 1 minute read

How to get thumbnail of dailymotion video using the video ID

How to get thumbnail of dailymotion video using the video ID

Getting the thumbnail image for a dailymotion video is very easy. Just use the following link, replacing the with the...

php-mysql - 6 years ago 1 minute read

How to get thumbnail of Vimeo video using the video ID

How to get thumbnail of Vimeo video using the video ID

Getting the thumbnail image for a Vimeo video is very easy. Just use the following link, replacing the with the...

php-mysql - 6 years ago 1 minute read

Youtube video thumbnail images get using the video ID ?

Youtube video thumbnail images get using the video ID ?

Getting the thumbnail image for a YouTube video is very easy. Just use the following link, replacing the with the...

php-mysql - 6 years ago 1 minute read

How to delete a file using PHP ?

How to delete a file using PHP ?

You can delete files from the server with PHP's file system function unlink() which will delete or remove the files....

php-mysql - 6 years ago 1 minute read

How to Detect user is active or idle on web page  Using JQuery ?

How to Detect user is active or idle on web page Using JQuery ?

In this post i will show you how to Detect user State(active or idle) on the web page or on...

jquery-2 - 6 years ago 1 minute read

Quick Start With Regular Expressions

Quick Start With Regular Expressions

Regular expression are very vital in any programming language, especially in web development we can use Regular Expression in verity...

php-mysql - 6 years ago 1 minute read

Understanding CSS3 Transitions

Understanding CSS3 Transitions

The transitions properties allow us to set delay time while elements changing from one state(style) to another state(style). Note: If...

css - 6 years ago 1 minute read

Arjun Forums - Built on the Codeigniter Framework

Arjun Forums - Built on the Codeigniter Framework

Arjun Forums - Version 1 Hey everyone, Arjun Forums is a PHP/MySQL Forums Software built on the Codeigniter Framework. Project...

codeigniter - 6 years ago 1 minute read

TimeZone conversion one timeZone to another php

TimeZone conversion one timeZone to another php

PHP has very powerful date handling functions and it makes TimeZone Conversion extremely simple. In some PHP application where we...

php-mysql - 6 years ago 1 minute read

How to get Facebook page fan count using PHP ?

How to get Facebook page fan count using PHP ?

It’s pretty easy to obtain the like count via Facebook’s Graph Api.This small code snippet given below uses FaceBook’s graph...

php-mysql - 6 years ago 1 minute read

Zend Framework 2 installation on Xampp ?

Zend Framework 2 installation on Xampp ?

In this tutorial i will cover the ZF2 installation on xampp for windows operating system. 1.First you need to download...

zend-framework-2 - 6 years ago 1 minute read

PHP Coding Standards and Best Practices

PHP Coding Standards and Best Practices

Coding Standards place a vital role in any programming language for achieving a high code quality and to write more...

php-mysql - 6 years ago 1 minute read

Execute a HTTP POST Using PHP cURL

Execute a HTTP POST Using PHP cURL

cURL is very powerful library, which allows transfer of data across a wide variety of protocols. I often use curl...

php-mysql - 6 years ago 1 minute read

Top 5 jQuery Sliders for Free

Top 5 jQuery Sliders for Free

jQuery has become a popular choice among web designers and developers because of the user’s ability to create websites with...

jquery-2 - 6 years ago 1 minute read

PHP File Handling

PHP File Handling

PHP File Handling is very impotent for serious programmers, we often use File Handing methods in web development, In this...

php-mysql - 6 years ago 1 minute read

CodeIgniter URI Segments ?

CodeIgniter URI Segments ?

This post is about codeigniter URI Segments, ci's uri class is initialized automatically by the system. with the help of...

codeigniter - 6 years ago 1 minute read

How to Create Custom View Helper in ZF2

How to Create Custom View Helper in ZF2

In this post I will show you how to create a custom view helper in ZF2, writing custom view helper...

zend-framework-2 - 6 years ago 1 minute read

Setting Database Configuration in CodeIgniter?

Setting Database Configuration in CodeIgniter?

Setting Database Configurations in Codeigniter very tiny task , just open database.php within applicationconfig. Set config like below , here...

codeigniter - 6 years ago 1 minute read

Twitter Bootstrap styles to Codeigniter Pagination

Twitter Bootstrap styles to Codeigniter Pagination

Here is the list of $config settings to style the pagination links properly in Codeigniter with Twitter Bootstrap CSS &...

codeigniter - 6 years ago 1 minute read

PHP Design Pattern - Singleton pattern

PHP Design Pattern - Singleton pattern

Knowing about Design patters is very essential in software designing and development, here in this post i am gonna write...

design-pattern - 6 years ago 1 minute read

How to Send HTML Mail Using Zend Framework 2 (ZF2)

How to Send HTML Mail Using Zend Framework 2 (ZF2)

ZendMail provides generalized functionality to compose and send both text and MIME-compliant multipart email messages. Mail can be sent with...

zend-framework-2 - 6 years ago 1 minute read

PHP Multidimensional Array Searching

PHP Multidimensional Array Searching

This post is about Multidimensional Array Searching , there is no builtin function in PHP to search Multidimensional Array, we...

php-mysql - 6 years ago 1 minute read

Delete Files Older than n Number Of days Using PHP?

Delete Files Older than n Number Of days Using PHP?

Some times in application development, we required to delete files older than specified number of days. Actually below method removes...

php-mysql - 6 years ago 1 minute read

How to Check Uncheck All Checkboxes Using Jquery

How to Check Uncheck All Checkboxes Using Jquery

This post is about Checking and Un-Checking all the check boxes with one single click. Below is the Sample code...

jquery-2 - 6 years ago 1 minute read

Php CodeIgniter Server Side Form Validation Example

Php CodeIgniter Server Side Form Validation Example

Today we are going to learn more about server side validation using php codeigniter framework.Follow the below steps to do...

codeigniter - 6 years ago 1 minute read

How to Use the Facebook API with Codeigniter

How to Use the Facebook API with Codeigniter

This post shows you how to get the sample Facebook application working with the CodeIgniter framework. For PHP Facebook has...

codeigniter - 6 years ago 1 minute read

File Upload using dropzone.js and Codeigniter

File Upload using dropzone.js and Codeigniter

In this post, I will show you, how to upload files with drag and drop interface with dropzone.js in your...

codeigniter - 6 years ago 1 minute read

Auto Generate a Photo Gallery from a Directory Using PHP

Auto Generate a Photo Gallery from a Directory Using PHP

In this post, I will show you how to create a simple picture gallery using PHP. This will go through...

php-mysql - 6 years ago 1 minute read

DIRECTORY_SEPARATOR is not necessary in PHP?

DIRECTORY_SEPARATOR is not necessary in PHP?

In Linux, the path separator is /, in windows supports both / and , so you can just use forward...

php-mysql - 6 years ago 1 minute read

Yii Tutorial : How to Add JavaScript into your views ?

Yii Tutorial : How to Add JavaScript into your views ?

This post is about registering inline and external javascript files into views, Yii provided CClientScript to manage the scripts and...

yii - 6 years ago 1 minute read

How to Login with Facebook Graph API using PHP?

How to Login with Facebook Graph API using PHP?

This is post is about integrating Facebook Connect into any website by using FB's Graph API. to use Graph API...

php-mysql - 6 years ago 1 minute read

How to get Facebook Page Albums With PHP in CodeIgniter?

How to get Facebook Page Albums With PHP in CodeIgniter?

Facebook SDK : Download After Downloading FB SDK, place all files in relevant areas in your Codeigniter application based on...

codeigniter - 6 years ago 1 minute read

Upload video and Convert to FLV using FFmpeg in CodeIgniter

Upload video and Convert to FLV using FFmpeg in CodeIgniter

In this post will show you how to upload and convert a video file to FLV using FFmpeg in CodeIgniter...

codeigniter - 6 years ago 1 minute read

How to Remove 'N' Number of Characters From Given String Using PHP

How to Remove 'N' Number of Characters From Given String Using PHP

One of my Friend Asked me this small Thing , Here this post is about removing N Number of Characters...

php-mysql - 6 years ago 1 minute read

How to Prevent SQL injection in Codeigniter?

How to Prevent SQL injection in Codeigniter?

In the web application security, SQL injections are place a very important role. To prevent SQL injections in PHP, we...

codeigniter - 6 years ago 1 minute read

Custom validation Rules in codeigniter ?

Custom validation Rules in codeigniter ?

CodeIgniter From Validation Library is Pretty Simple to Use and very powerful. We can define our own Custom Validation Rules...

codeigniter - 6 years ago 1 minute read

How to Get Last inserted ID in Zend Framework 2?

How to Get Last inserted ID in Zend Framework 2?

We often need last inserted ID for different reasons(for example when you need to store foreign key), Immediately after a...

zend-framework-2 - 6 years ago 1 minute read

How to Send Email with SMTP and PHP Mailer ?

How to Send Email with SMTP and PHP Mailer ?

In this post i am gonna write about Sending Emails Through the SMTP(Send Mail Transfer Protocol) and PHP Mailer Library....

php-mysql - 6 years ago 1 minute read

How to check is a string valid json in PHP ?

How to check is a string valid json in PHP ?

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is...

php-mysql - 6 years ago 1 minute read

Best authentication libraries for CodeIgniter

Best authentication libraries for CodeIgniter

CodeIgniter till now does not have any native built-in library for authentication and authorization Here is the list of CodeIgniter's...

codeigniter - 6 years ago 1 minute read

How to Convert one timezone into another timezone in PHP ?

How to Convert one timezone into another timezone in PHP ?

Today's post is about Date time display change based on given or supplied timezone , fortunately it is very simple...

php-mysql - 6 years ago 1 minute read

How to Send Gmail using CodeIgniter Email Library

How to Send Gmail using CodeIgniter Email Library

In this post I would like to show you configuring Codeigniter email library to send emails using GMail SMTP server....

codeigniter - 6 years ago 1 minute read

How to use MySQLi_connect in PHP

How to use MySQLi_connect in PHP

The MySQLi extension was developed to take advantage of new features found in MySQL systems versions 4.1 and Above. MySQLi...

php-mysql - 6 years ago 1 minute read

Convert Currency using Google Finance in PHP ?

Convert Currency using Google Finance in PHP ?

In this post i am going to write about Converting Currency using Google Finance Using php Scripting Language, we Can...

php-mysql - 6 years ago 4 minute read

How to redirect to 404 page in zend Framework 2

How to redirect to 404 page in zend Framework 2

The Zend framework automatically does this if the user selected route doesn’t exists. Although in some situations like getting data...

zend-framework-2 - 6 years ago 1 minute read

CodeIgniter - No input file selected on Godaddy,.htaccess

CodeIgniter - No input file selected on Godaddy,.htaccess

I recently launched a new website on GoDaddy hosting. The website required mod_rewrite for SEO-friendly URLs. The website was Developed...

codeigniter - 6 years ago 1 minute read

How to Install Node.js on Windows?

How to Install Node.js on Windows?

In this post i am gonna write About node.js installation on Windows operating systems. Go to nodejs.org , nodejs's official...

node-js - 6 years ago 1 minute read

How to Secure your CodeIgniter Application ?

How to Secure your CodeIgniter Application ?

Today I am gonna Write About Codeigniter website security optimization and voiding hacking disasters. Tips to Secure your CodeIgniter Application...

codeigniter - 6 years ago 1 minute read

Multiple Database Connection in CodeIgniter

Multiple Database Connection in CodeIgniter

You Can Connect to Multiple Database in the same Codeigniter application easily. To use Multiple Database Connections you have to...

codeigniter - 6 years ago 1 minute read

WordPress Ping List - 2014

WordPress Ping List - 2014

WordPress ping list is very useful to extend your blog reach to major search engines. How Ping works in Wp...

wordpress - 6 years ago 1 minute read

Uploading and Extracting Zip Files with Codeigniter?

Uploading and Extracting Zip Files with Codeigniter?

In this post i’ll explain how to upload and extract zip files using codeigniter file upload library and PHP Zipachive...

codeigniter - 6 years ago 1 minute read

How to get current page full URL with PHP?

How to get current page full URL with PHP?

In this Post, you'll learn how to get current web page url from your web browser address bar using php...

php-mysql - 6 years ago 1 minute read

Why Codeigniter removes inline style from html input ?

Why Codeigniter removes inline style from html input ?

Recently i ran into to the situation to set inline styles to element on the page using html inputs,project is...

codeigniter - 6 years ago 1 minute read

Get ALL Links From Page with php ?

Get ALL Links From Page with php ?

This is post is about getting All Links from the given URL, we can achieve same Output with various methods...

php-mysql - 6 years ago 1 minute read

How to send email in codeigniter?

How to send email in codeigniter?

This post is about CodeIgniter Email Class, Sending Emails in Codeigniter App is not a tedious Task,it is very simple...

codeigniter - 6 years ago 1 minute read

Printing Last Executed Mysql Query in CodeIgniter?

Printing Last Executed Mysql Query in CodeIgniter?

In codeIgniter We can get last executed MySQL Query With One of the CI's Query Helper function called last_query(), you...

codeigniter - 6 years ago 1 minute read

How to set Cron Jobs in PHP ?

How to set Cron Jobs in PHP ?

Cron job is scheduling some tasks with in regular interval on server.To setup cron job we must know about the...

php-mysql - 6 years ago 1 minute read

Responsive Images With Css

Responsive Images With Css

Making images responsive (fluid Images) is essential in responsive layouts. Fortunately, it is pretty easy to do with simple CSS...

css - 6 years ago 1 minute read

Facebook Open Graph META Tags

Facebook Open Graph META Tags

This post will explain you that how to include social META tags for defining exact titles, description and images for...

html - 6 years ago 1 minute read

How to Create,Get,Check Sessions in Zend Framework 2?

How to Create,Get,Check Sessions in Zend Framework 2?

In GF2 in order to use Sessions we should use this use ZendSessionContainer; class. This class Container extends of ArrayObject...

zend-framework-2 - 6 years ago 1 minute read

Yii Tutorial :: How to Add Facebook Open Graph Tags ?

Yii Tutorial :: How to Add Facebook Open Graph Tags ?

This Blog post is about Adding Facebook Open Graph Tags to the web app in Yii, This is really simple...

yii - 6 years ago 1 minute read

How to install Alternative PHP Cache(APC) in Xampp Windows?

How to install Alternative PHP Cache(APC) in Xampp Windows?

Find The suitable APC for the Xampp from the blow given link based on PHP Extension Build, and Xampp version....

php-mysql - 6 years ago 1 minute read

How to count days between two dates in PHP?

How to count days between two dates in PHP?

In this tutorial, we will write about calculating the number of days between two dates. This can be done very...

php-mysql - 6 years ago 1 minute read

How to Create Laravel Eloquent model without a primary key ?

How to Create Laravel Eloquent model without a primary key ?

This post about Creating Laravel Eloquent model without a primary key,By default laravel will take primary key as ID, we...

laravel - 6 years ago 1 minute read

How to add Date Picker to a Form Text Field in YII?

How to add Date Picker to a Form Text Field in YII?

Here is simple code snippet for adding date picker in YII. We have a Date Picker widget in Yii so...

yii - 6 years ago 1 minute read

How to redirect to previous URL in YII

How to redirect to previous URL in YII

If you want to get previous URL use blow line of code echo Yii::app()->request->urlReferrer; If you want to redirect to...

yii - 6 years ago 1 minute read

AJAX + CSRF Protection  in Codeigniter ?

AJAX + CSRF Protection in Codeigniter ?

Codeigniter 2.0 adds an important security feature to prevent CSRF (Cross Site Request Forgery) attacks. Even better, the feature is...

codeigniter - 6 years ago 1 minute read

How to Check for Ajax request in CodeIgniter?

How to Check for Ajax request in CodeIgniter?

The CodeIgniter Input Class Provides some helper functions to deal with user inputs , this class is initialized automatically by...

codeigniter - 6 years ago 1 minute read

Website speed tip: leverage browser caching

Website speed tip: leverage browser caching

In the past, performance was not considered one of the top priorities when developing web applications, but nowadays web app...

apache - 6 years ago 1 minute read

Top PHP frameworks for 2014

Top PHP frameworks for 2014

Phalcon Laravel CodeIgniter Yii Symfony2 Aura Zend Framework2 CakePHP Kohana

php-mysql - 6 years ago 1 minute read

Zend Framework 2 - Cache Example

Zend Framework 2 - Cache Example

In this post, i will show you how to cache your data in ZF2 using "filesystem" adapter.We can directly instance...

zend-framework-2 - 6 years ago 1 minute read

ZF2 Cache:How to Enable The merged configuration cache ?

ZF2 Cache:How to Enable The merged configuration cache ?

Zend Framework 2's Module Manager has the ability to cache the merged configuration information for your application.merged configuration Means that...

zend-framework-2 - 6 years ago 1 minute read

How to hide the WordPress admin bar ?

How to hide the WordPress admin bar ?

I would like to show you how to disable or hide the admin bar in your WordPress application. Just put...

wordpress - 6 years ago 1 minute read

Zend Framwork 2 : How to use Service Manager in controller plugin.

Zend Framwork 2 : How to use Service Manager in controller plugin.

$this->dbAdapter = $this->getController()->getServiceLocator()->get('ZendDbAdapterAdapter');

zend-framework-2 - 6 years ago 1 minute read

How to compress html output in zend framework 2 ?

How to compress html output in zend framework 2 ?

Today's post is About HTML Output Compression, we can reduce 10-20% load on the server by compressing the HTML output(bandwidth...

zend-framework-2 - 6 years ago 1 minute read

Environment driven database settings in CodeIgniter?

Environment driven database settings in CodeIgniter?

Have you ever developed your application locally, then taken it live on your production server and had to manually change...

codeigniter - 6 years ago 2 minute read

Prevent Your CSS and JavaScript Files From Being Cached

Prevent Your CSS and JavaScript Files From Being Cached

Today's post is about Preventing Css and Js Files being Cached on client Machine, we often change our css &...

css - 6 years ago 1 minute read

Android Detection with PHP

Android Detection with PHP

Device detection place very important role in applying new strategies for improving business and user experience. So Here is the...

php-mysql - 6 years ago 1 minute read

How to Enable cURL on Windows & Apache Server?

How to Enable cURL on Windows & Apache Server?

Firstly, locate your php.ini file, which in my case is in the default directory of xampp\php and edit with a...

apache - 6 years ago 1 minute read

How to Connect to mysql database with php?

How to Connect to mysql database with php?

before any operations are to be made on the data, you have to establish a connection to the DB. There...

php-mysql - 6 years ago 1 minute read

How to Set, Get and Delete Cookies in PHP?

How to Set, Get and Delete Cookies in PHP?

This tutorial teaches you how you can set cookies, retrieve them and delete them using PHP. Cookies allow the webmaster...

php-mysql - 6 years ago 1 minute read

How to Updating an existing database record +1 in CodeIgniter?

How to Updating an existing database record +1 in CodeIgniter?

$the->db->set() - This function enables you to set values for inserts or updates. $this->db->where() - This function enables you to...

codeigniter - 6 years ago 1 minute read

How to Enable the openssl in xampp?

How to Enable the openssl in xampp?

Open php.ini(C:xamppphp) with any text editor, Search for ;extension=php_openssl.dll then remove the semicolon from the biggning, Then Restart the server....

php-mysql - 6 years ago 1 minute read

Yii Framework Tutorial ?

Yii Framework Tutorial ?

Yii is Open Source PHP Framework. Qiang Xue is the founder of Yii, He started the development of this open...

yii - 6 years ago 1 minute read

How to get Real IP from Visitor?

How to get Real IP from Visitor?

Today's Post is about Getting Visitor's Real IP Address Using PHP, you can get visitor IP with the help of...

php-mysql - 6 years ago 1 minute read

CodeIgniter form dropdown Validation?

CodeIgniter form dropdown Validation?

This post is about CodeIgniter Dropdown Menu(all so know as a select box) validation.See the below code samples for better...

codeigniter - 6 years ago 1 minute read

Getting the YouTube ID with PHP?

Getting the YouTube ID with PHP?

Today post is about retrieving Youtube ID from its URL. The below PHP code will allow you to extract the...

php-mysql - 6 years ago 1 minute read

How to Implement ThickBox in Codeigniter ?

How to Implement ThickBox in Codeigniter ?

ThickBox is a webpage UI dialog widget written in JavaScript on top of the jQuery library. Its function is to...

codeigniter - 6 years ago 1 minute read

Create Your own domain in xampp ?

Create Your own domain in xampp ?

This post is about Creating virtual hosts locally, i am gonna write step by step procedure to create your own...

php-mysql - 6 years ago 1 minute read

How to Remove HTML Comments with PHP?

How to Remove HTML Comments with PHP?

In my recent project there are lot of HTML comments for each block. I don't want to show the comments...

php-mysql - 6 years ago 1 minute read

Allow only pdf,doc,docx files for uploading with Jquery ?

Allow only pdf,doc,docx files for uploading with Jquery ?

Now if we want allow only pdf,doc, docx format files for file uploading, use the below code Html JQuery Script...

jquery-2 - 7 years ago 1 minute read

How to use Captcha in CodeIgniter?

How to use Captcha in CodeIgniter?

In this tutorial, I will show you integrating Captcha in your CodeIgniter application. We gonna use CI's builtin captcha helper...

codeigniter - 7 years ago 1 minute read

Pagination with CodeIgniter ?

Pagination with CodeIgniter ?

In this tutorial, We gonna use CodeIgniter built-in pagination library to show the paginated list of items on your web...

codeigniter - 7 years ago 1 minute read

Manage or Highlight Active link or page in Codeigniter?

Manage or Highlight Active link or page in Codeigniter?

I always use this CodeIgniter Helper for all of my CI projects to Highlight Current or active link in the...

codeigniter - 7 years ago 1 minute read

How to create links in  codeigniter?

How to create links in codeigniter?

This Post is About Creating Links in CodeIgniter, To Create Links in CodeIgniter you have to load CI URL Helper,...

codeigniter - 7 years ago 1 minute read

How to Centre a DIV Block Using CSS?

How to Centre a DIV Block Using CSS?

This post is About Centering A div Block Using Css, To Center a Div Block , you need to set...

html - 7 years ago 1 minute read

Build a RSS 2.0 feed with CodeIgniter?

Build a RSS 2.0 feed with CodeIgniter?

RSS (Real Simple Syndication) feeds can be found everywhere on the internet. News and information are delivered using it and...

codeigniter - 7 years ago 1 minute read

Develop Multilingual site using codeigniter i18n Library

Develop Multilingual site using codeigniter i18n Library

CodeIgniter has lot of Useful helper functions and libraries , Classes. Here we are going to Develop a Multilingual Site...

codeigniter - 7 years ago 1 minute read

How to  Detect Ajax Request ?

How to Detect Ajax Request ?

The HTTP_X_REQUESTED_WITH header is sent by all recent browsers that support AJAX requests. if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) ==...

php-mysql - 7 years ago 1 minute read

How do i Query to Count Last 3 Days Recourds in MySQL?

How do i Query to Count Last 3 Days Recourds in MySQL?

One of my new Project, I need to Display Latest Updates of last 3 days. With MySQL’s date_add we can...

php-mysql - 7 years ago 1 minute read

How to Create A Custom Widget in Yii Framework ?

How to Create A Custom Widget in Yii Framework ?

Yii is a wonderful framework that gives generated codes for the developer.in here I will show you how to create...

yii - 7 years ago 1 minute read

PHP composer tutorial?

PHP composer tutorial?

http://www.youtube.com/watch?v=QOldVDVYnAE

php-mysql - 7 years ago 1 minute read

Echo Array values in PHP ?

Echo Array values in PHP ?

This is very simple and common task, But many PHP newbies(beginners) don’t know about it. To see the Structure of...

php-mysql - 7 years ago 1 minute read

PHP Function to get data from MySQL Database?

PHP Function to get data from MySQL Database?

Data retrieving is vital in Web Applications, so in this post i am going to write about Data Retrieving function...

php-mysql - 7 years ago 1 minute read

Useful CSS Generators List

Useful CSS Generators List

Below is a list of some CSS generators that will help make your life as a web designer much easier....

css - 7 years ago 1 minute read

HTML5 Force Download

HTML5 Force Download

When you link to a file like an image or a PDF-document it will be displayed within the browser normally....

html - 7 years ago 1 minute read

How to enable WordPress Post thumbnails?

How to enable WordPress Post thumbnails?

In this post, I would like to show you how to enable Wordpress post thumbnails on your Wordpress theme. Post...

wordpress - 7 years ago 1 minute read

Image Data URIs with PHP

Image Data URIs with PHP

I often Use Image Data URIs for large-scale applications depending on client requirement(not supported in IE7 and below). Data URI:...

php-mysql - 7 years ago 1 minute read

Setting Home Page In yii Application With Default Controller And Default Action ?

Setting Home Page In yii Application With Default Controller And Default Action ?

We can set or change front page or home page of YII Driven web Application with simple Changes, we can...

yii - 7 years ago 1 minute read

How to make Alphabet Navigation Menu with PHP?

How to make Alphabet Navigation Menu with PHP?

In this post, we are going to discuss alphabet navigation, before that do you know How to generate alphabets in...

php-mysql - 7 years ago 1 minute read

Uploading Images With PHP ?

Uploading Images With PHP ?

This Tutorial takes you through How to make a PHP Image Uploading Script, rather than uploading images to a database...

php-mysql - 7 years ago 1 minute read

IE Fix: IE7 text-indent bug in CSS ?

IE Fix: IE7 text-indent bug in CSS ?

When Making links with Background images to keep text visible to search engines or text-to-speech applications we use Text indent...

css - 7 years ago 1 minute read

Dynamically distinguish between development, testing and production servers in CodeIgniter

Dynamically distinguish between development, testing and production servers in CodeIgniter

You can Configure the CodeIgniter to Dynamically distinguish between development, test and production servers, It's Better to keep your Development,...

codeigniter - 7 years ago 1 minute read

Validation within models in CodeIgniter?

Validation within models in CodeIgniter?

In general, we write all validation rules in Controllers, This is perfectly fine, but can lead to a large amount...

codeigniter - 7 years ago 1 minute read

Multiple image uploading using single input in CodeIgniter ?

Multiple image uploading using single input in CodeIgniter ?

CodeIgniter is a PHP framework, CodeIgniter has a number of helpers and libraries, which will reduce the development time and...

codeigniter - 7 years ago 1 minute read

Uploading PDF files with CodeIgniter ?

Uploading PDF files with CodeIgniter ?

CodeIgniter is a PHP framework, CodeIgniter has a number of helpers and libraries, which will reduce the development time and...

codeigniter - 7 years ago 1 minute read

PHP array_map() with  multiple callbacks?

PHP array_map() with multiple callbacks?

We can pass multiple Callback function to array_map with use of anonymous function , just pass the anonymous function as...

php-mysql - 7 years ago 1 minute read

How to get base url in CodeIgniter  ?

How to get base url in CodeIgniter ?

you can get base url of codeIgniter applicatoin with $this->config->base_url();, you can also call base_url(), but to use the function...

codeigniter - 7 years ago 1 minute read

CodeIgniter Redirect to Current Page URL After Logout ?

CodeIgniter Redirect to Current Page URL After Logout ?

In CodeIgniter you can get current page URL using CodeIgniter URL helper function current_url(). Now you knew how to get...

codeigniter - 7 years ago 1 minute read

PHP Redirection script

PHP Redirection script

In this programming tutorial, you will learn page Redirection using PHP. you can use header() function in PHP or use...

html - 7 years ago 1 minute read

How to Remove index.php in the url of Yii Website?

How to Remove index.php in the url of Yii Website?

Usually, when we run a Yii website, the URL will have index.php after the hostname. To remove this in appache...

yii - 7 years ago 1 minute read

How to remove index.php from Codeigniter URL?

How to remove index.php from Codeigniter URL?

I would like to explain about removing index.php from codeigniter based application urls with .htaccess.To hide "index.php" from the URL,...

codeigniter - 7 years ago 1 minute read

How to find a string/value in an array in PHP?

How to find a string/value in an array in PHP?

While developing web applications, in some cases we have to check for array value existence in that situation we can...

php-mysql - 7 years ago 1 minute read

Get Full Current URL from Address Bar

Get Full Current URL from Address Bar

In this tutorial, you'll learn how to get current web page URL from your web browser address bar using PHP...

php-mysql - 7 years ago 1 minute read

How to Trim all Members of an array with PHP?

How to Trim all Members of an array with PHP?

This Post is About Removing White space of array Members from the beginning and end of the given array. Here...

php-mysql - 7 years ago 1 minute read

Increment / Decrement Operators in PHP ?

Increment / Decrement Operators in PHP ?

Increment and Decrement Operators are common in many Languages, Increment Operator is represented by ++ Decrement Operator is represented by...

php-mysql - 7 years ago 1 minute read

Get image height and width PHP ?

Get image height and width PHP ?

We can easily extract image information from the Image URL using PHP's predefined function called getimagesize() I Use this function...

php-mysql - 7 years ago 1 minute read

PHP Array Functions: array_change_key_case

PHP Array Functions: array_change_key_case

In this programming tutorial, you will learn how to use the PHP array function array_change_key_case to manipulate array keys in...

php-mysql - 7 years ago 1 minute read

Password Hashing Functions in PHP 5.5

Password Hashing Functions in PHP 5.5

The password hashing API provides an easy to use wrapper around crypt() to make it easy to create and manage...

php-mysql - 7 years ago 1 minute read

How to Speed Up CodeIgniter App?

How to Speed Up CodeIgniter App?

We can improve Codeigniter application speed with simple tactics. I will show very simple steps, which will improve your CI...

codeigniter - 7 years ago 1 minute read

MySQL With Handling Duplicates ?

MySQL With Handling Duplicates ?

This post explains, how to prevent the duplicate occurrence in the table and how to deal with already existed duplicate...

php-mysql - 7 years ago 1 minute read

Nested Menu categories with single MySQL query using PHP?

Nested Menu categories with single MySQL query using PHP?

Today I am gonna write about Nested Menu Categories with Single MySQL Query, Here I will show you how to...

php-mysql - 7 years ago 1 minute read

My favorite Css,Js Compressor ?

My favorite Css,Js Compressor ?

Css Compressors MinifyMe, a minimizer for CSS and Javascript http://isnoop.net/tools/css.php http://www.cssdrive.com/index.php/main/csscompressoradvanced/ Js Compressors http://dean.edwards.name/packer/ http://javascriptcompressor.com/

css - 7 years ago 1 minute read

How to Install YII in windows, XAMPP ?

How to Install YII in windows, XAMPP ?

SETP1: Download Latest version of Yii Framewrok from official website (http://www.yiiframework.com/). SETP2: Extract The Giz. SETP3 : OPEN command prompt,...

yii - 7 years ago 1 minute read

Cross browser Unselectable text Using Css?

Cross browser Unselectable text Using Css?

In some special situations need to disable Text Selecting(copying) on the webpage. we can achieve this with JavaScript and CSS,...

css - 7 years ago 1 minute read

How to Display Confirm box when clicking a Link?

How to Display Confirm box when clicking a Link?

We always use Confirm Box while Deleting Data, Confirm Box is vary useful to confirm use Actions on the web,...

html - 7 years ago 1 minute read

How to Get Last inserted ID in CodeIgnier?

How to Get Last inserted ID in CodeIgnier?

We often need last inserted ID for different reasons(for example when you need to store foreign key), Immediately after a...

codeigniter - 7 years ago 1 minute read

PHP Email Sending Script ?

PHP Email Sending Script ?

Below Script is using PHP's mail function to send emails.

php-mysql - 7 years ago 1 minute read

CodeIgniter GZIP

CodeIgniter GZIP

CodeIgniter is one of the PHP MVC Framework with minimum learning curve best documentation and easy workflow, in CodeIgniter we...

codeigniter - 7 years ago 1 minute read

How to Set, Get and Delete Cookies in CodeIgniter ?

How to Set, Get and Delete Cookies in CodeIgniter ?

We can Set, Get and Delete Cookies with CodeIgniter Cookie Helper, Cookie Helper contains functions that assist in working with...

codeigniter - 7 years ago 1 minute read

How to Refresh Current Page in CodeIgniter?

How to Refresh Current Page in CodeIgniter?

With the help of CodeIgniter Built in function redirect(), we can refresh or redirect the page based on given parameters....

codeigniter - 7 years ago 1 minute read

Validate Multiple Phone numbers Comma Separated with PHP?

Validate Multiple Phone numbers Comma Separated with PHP?

$str = "9703132428,123456789,1"; // convert string to array $numbers = explode(',', $str); // remove empty items from array $numbers =...

php-mysql - 7 years ago 1 minute read

php explode at capital letters?

php explode at capital letters?

You can explode a string at capital letters with preg_split function, see the below example $string = 'HelloWorld'; // ?=[A-Z]...

php-mysql - 7 years ago 1 minute read

List of top tutorials on how to create an API With PHP?

List of top tutorials on how to create an API With PHP?

List of top tutorials on how to create an API With PHP? Creating a RESTful API with PHP(2013) Creating an...

php-mysql - 7 years ago 1 minute read

How to get Alexa Rank with PHP ?

How to get Alexa Rank with PHP ?

Alexa is one of the most well known and popular web information providers. It provides information about web site's traffic...

php-mysql - 7 years ago 1 minute read

Create Bit.ly Short URLs Using PHP?

Create Bit.ly Short URLs Using PHP?

One of the more popular and powerful URL shortening services is Bit.ly. Bitly offers simple and powerful API to generate...

php-mysql - 7 years ago 1 minute read

How to downlaod Files using CodeIgniter?

How to downlaod Files using CodeIgniter?

CodeIgniter has a nice helper function to download files. It is a nice way to download from server without any...

codeigniter - 7 years ago 1 minute read

How to Increase file size upload limit using .htaccess ?

How to Increase file size upload limit using .htaccess ?

Most of the web Hosting providers give access to overriding the .htaccess, To Increase file size upload limit via .htaccess...

apache - 7 years ago 1 minute read

Vanilla forum Login With CodeIgniter Tank Auth?

Vanilla forum Login With CodeIgniter Tank Auth?

Before writing any script login into your installed vanilla forum, go to addons section , Click on Plugins , in...

codeigniter - 7 years ago 1 minute read

How to Extend CodeIgniter Helper?

How to Extend CodeIgniter Helper?

CodeIgniter Helper Function are available anywhere in the code, more than 20 CI Helpers are there(URL, Form, Directory, ...etc). You...

codeigniter - 7 years ago 1 minute read

How to force no-www URLs to www version URLs with htaccess?

How to force no-www URLs to www version URLs with htaccess?

For SEO reasons, you might always use (or remove) the www prefix in your urls. The following snippet will add...

apache - 7 years ago 1 minute read

How to Remove www in url with htaccess?

How to Remove www in url with htaccess?

For SEO reasons, you might always remove (or use) the www prefix in your URLs. The following snippet will remove...

apache - 7 years ago 1 minute read

codeigniter tutorials for beginners?

codeigniter tutorials for beginners?

CODEIGNITER – GETTING STARTED Everything You Need to Get Started With CodeIgniter Easy Development With CodeIgniter BECOME A CODEIGNITER PRO...

codeigniter - 7 years ago 1 minute read

Best Practices to Secure Your Web App

Best Practices to Secure Your Web App

Writing and Developing Secure Application is topmost Concern of Developer, There are some simple measures you can take to protect...

php-mysql - 7 years ago 1 minute read

How to pin a contact or group on home screen on your Nokia Lumia

How to pin a contact or group on home screen on your Nokia Lumia

This Post is about Nokia Lumia pin on Home Screen with Contacts and Group Open the People Hub. Press and...

tips - 7 years ago 1 minute read

How to Flush Windows DNS Cache?

How to Flush Windows DNS Cache?

Hey! , Typically There is 3 Type of Caches in windows Which you can flush easily: Memory Cache. DNS Cache....

tips - 7 years ago 1 minute read

How to Display MySQL Table Data in HTML Table?

How to Display MySQL Table Data in HTML Table?

This post is about data retrieving from MySQL database table using PHP. The bellow PHP script will give you HTML...

php-mysql - 7 years ago 1 minute read

range() : create array with same key and value?

range() : create array with same key and value?

In my recent client project, I am writing filters on data with different categories and where I need to filter...

php-mysql - 7 years ago 1 minute read

What are the differences between public, private, protected, static, transient, final and volatile?

What are the differences between public, private, protected, static, transient, final and volatile?

Public: Public keyword declared methods and variables can be accessed from, within the class and outside the class Protected: Protected...

php-mysql - 7 years ago 1 minute read

Create Image Thumbnails Using PHP

Create Image Thumbnails Using PHP

This Post is about Creating Thumbnail Images Using PHP, Thumbnails are very useful for websites it will save the bandwidth...

php-mysql - 7 years ago 1 minute read

How to Display IP Address in a graphic mode Using PHP ?

How to Display IP Address in a graphic mode Using PHP ?

This Post is About Displaying IP Address in Image format, in my previous post I wrote about getting real IP...

php-mysql - 7 years ago 1 minute read

Unlink File in Codeigniter

Unlink File in Codeigniter

You can delete files from the server with PHP’s file system function unlink() which will delete or remove the files....

codeigniter - 8 years ago 1 minute read

Redirect The Sub Domain To a Sub Folder with .htaccess

Redirect The Sub Domain To a Sub Folder with .htaccess

In this post, I want to explain how to redirect the subdomain to a subfolder with .htaccess. I had implemented...

apache - 8 years ago 1 minute read

Twitter Type like Login Box with Jquery and CSS?

Twitter Type like Login Box with Jquery and CSS?

Here is the simple tutorial On Twitter Like Login Box Show and Hide effect with JQuery, You can achieve this...

css - 8 years ago 1 minute read

Automatic Copyright Year Update with PHP & JavaScript?

Automatic Copyright Year Update with PHP & JavaScript?

This post is about Automatic Copyright Year Update, Almost nowadays most of the website include a copyright declaimer a the...

javascript - 8 years ago 1 minute read

How to Send Email Using PHP Script?

How to Send Email Using PHP Script?

php-mysql - 8 years ago 1 minute read

How to get absolute path on a web server using PHP ?

How to get absolute path on a web server using PHP ?

We can find absolute path in different ways on a web server using PHP, I am showing some of that...

php-mysql - 8 years ago 1 minute read

Multiple background images using CSS?

Multiple background images using CSS?

CSS3 allows web designers to specify multiple background images for box elements, using nothing more than a simple comma-separated list....

css - 8 years ago 1 minute read

How to validate password with regular expression,PHP

How to validate password with regular expression,PHP

Today's post is about password validation in PHP using Regular Expressions. Here is the small use full Password Validation function....

php-mysql - 8 years ago 1 minute read

How to Open pdf links in new window with jQuery?

How to Open pdf links in new window with jQuery?

Here is the simple and elegant solution to open all .pdf files in new window with jQuery. $(document).ready(function(e) { $('a[href$=".pdf"]').attr('target',...

javascript - 8 years ago 1 minute read

Automatically Refresh a Page Using META Tag

Automatically Refresh a Page Using META Tag

Using the below simple html markup , you can auto refresh or reload the page. The following refreshes the page...

html - 8 years ago 1 minute read

Auto Refresh in PHP Script?

Auto Refresh in PHP Script?

Using the below script, you can auto refresh the output of your PHP script in a browser. Place the code...

php-mysql - 8 years ago 1 minute read

Displaying MySQL Table records in unordered list format Using PHP?

Displaying MySQL Table records in unordered list format Using PHP?

This post is about data retrieving from MySQL database table using PHP. The bellow PHP script will give you Unordered...

php-mysql - 8 years ago 1 minute read

How to remove all the empty elements of an array with php ?

How to remove all the empty elements of an array with php ?

This post is about removing empty elements from the given array using PHP. Here is example $test_array = array('foo', 'bar',...

php-mysql - 8 years ago 1 minute read

How to Enable Rewrite Module in Apache ?

How to Enable Rewrite Module in Apache ?

Rewrite module is not enabled by default in Apache’s configuration settings. although you can enable it manually by doing very...

apache - 8 years ago 1 minute read

Base Controller In CodeIgniter

Base Controller In CodeIgniter

I always use this Base Controller for My CodeIgniter App Development, It makes my app portable and flexible.We can define...

codeigniter - 8 years ago 1 minute read

Enable GET method in CodeIgniter Framework?

Enable GET method in CodeIgniter Framework?

GET data is simply disallowed by CodeIgniter since the system utilizes URI segments rather than traditional URL query strings (unless...

codeigniter - 8 years ago 1 minute read

File Uploading with PHP ?

File Uploading with PHP ?

This script will allow you to upload files from your browser to your hosting, using PHP. Uploading Files to a...

php-mysql - 8 years ago 1 minute read

Testing You Have PHP Installed Correctly On Your Server

Testing You Have PHP Installed Correctly On Your Server

Open a notepad, and put the following code: This should be saved as test.php in the document root of your...

php-mysql - 8 years ago 1 minute read

How to count the number of items in a PHP array ?

How to count the number of items in a PHP array ?

Here is my Array with some stuff $myArray = array('key1' => 'value1', 'key2' => 'value2', 'key3' => 'value3'); What if...

php-mysql - 8 years ago 1 minute read

CodeIgniter : One Controller to Rule all Methods(page)

CodeIgniter : One Controller to Rule all Methods(page)

Today, we are Going to Use Codeigniter URI Segments to rule all Methods within the controller, means one Controller will...

codeigniter - 9 years ago 1 minute read

HTML5 shiv on Google CDN

HTML5 shiv on Google CDN

Just for Quick copy past

css - 9 years ago 1 minute read

Cross Browser Opacity Hack

Cross Browser Opacity Hack

Below snippets will set the opacity of the elements and its children. selector { // IE 8 -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; //...

css - 9 years ago 1 minute read

Smooth scrolling to top of page

Smooth scrolling to top of page

When the size of web page increases, it's better to have a button to scroll to the top of the...

jquery-2 - 9 years ago 1 minute read

Get Browser Information using PHP?

Get Browser Information using PHP?

Source from : http://php.net/manual/en/function.get-browser.php

php-mysql - 9 years ago 1 minute read

8 functions should know for PHP newcomer ?

8 functions should know for PHP newcomer ?

Function 1 : array_rand Get a random variable in an array. $sites = array ("google.com","Bing", "yahoo.com", "php.net", "apple.com"); $k =...

php-mysql - 9 years ago 1 minute read

Force SSL using htaccess

Force SSL using htaccess

Forcing visitors to use SSL can be accomplished through your .htaccess file using mod_rewrite module. we have to force browsers...

php-mysql - 10 years ago 1 minute read

 Check for valid email address in PHP

Check for valid email address in PHP

Below is the simple PHP function to check for valid email address. function is_valid_email($email) { if(preg_match("/[a-zA-Z0-9_-.+][email protected][a-zA-Z0-9-]+.[a-zA-Z]+/", $email) > 0) return...

php-mysql - 10 years ago 1 minute read

Web Safe Fonts

Web Safe Fonts

Below is the list of safe fonts for websites font-family: Arial, Helvetica, sans-serif; font-family: 'Arial Black', Gadget, sans-serif; font-family: 'Bookman...

css - 10 years ago 1 minute read