Category Archives: PHP

Create secure password protected web pages and files through htaccess

Hello friends, Today we will learn to create secure password protected web pages and files through .htaccess in easy steps. Sometimes in our project we need to protect web pages and files from an unauthorized person. You will also have seen many websites where their some pages have password protected or by username and password. So anybody who… Read More »

Laravel 5- Google reCaptcha integration and validation example

Hi guys, In this article i am going to tell you about laravel5- google reCaptcha integration and validation example. If you want to secure you application’s form then captcha is a good choice to secure a form submission in your application. And google reCaptcha is best for that. If you do not secure you form through captcha then… Read More »

Laravel5 barcode generator example with milon/barcode package

Hello guys, In this article i will let you know about the laravel5 barcode generator. When you are developing an application sometimes you need to create a module to generate barcode. So here you will know how to generate barcode in your application. Laravel has many packages to implement many features. Here we will use milon/barcode package and… Read More »

Multi Dimensional Array Sorting in Php

There are some inbuilt php functions are available to sort an array in which order you want like sort(), ksort(), rsort(), usort() etc. But these methods sort only one dimensional array. If you want multi dimensional array sorting you will have to write some code to handle it. Here, in this article i will tell you a simple… Read More »

Random number generator in php

Some times we need to random number generator in php for an application. Generally if write code for an application we need a number such as authentication code or one time password (OTP) to validate user. Here i am going to tell you about different methods for random number generator in php. Method1 : rand(1000, 9999), mt_rand() or mt_rand(10,10000)… Read More »

Php send and receive file via curl post request

Sometimes we need to send a file from one server to another server through the php script, for that we can use ssh or ftp credentials in predefined php functions for ssh and ftp connection. But here i am going to tell you about  php send and receive file via curl post request. Follow the script below to… Read More »

Laravel 5 import and export data csv and excel using maatwebsite

If you are developing an web application, then you will also need to import csv or excel data into database or export csv/excel data from database. Here we are using  maatwebsite/excel. The package maatwebsite/excel provides large functionality of excel/csv file import and export in laravel. If you are working on large products by using laravel framework you will have… Read More »

Laravel 5 task scheduling with cron job example

Laravel provides a feature to run specific jobs through only one cron on the server.  It automatically manages all the jobs through the artisan command you don’t need to set multiple jobs on the server to execute in specific time and specific interval. We can manage a task on the server that executes scripts which helps in sending… Read More »