How to implement Login With Facebook in PHP
In today’s environment it is very common to use facebook and gmail login features to make login process more authentic and fast. Here I am going to describe how to implement login via facebook in your web Read more…
Learn to Differentiate among isset, is_null and empty in PHP
Php has different methods to check the value of the variable. The methods isset(), empty() and is_null() are very useful methods and all returns a boolean value. Let see the difference between these methods for different Read more…
Using Google Search Operators for Better Results
Google defines Search Operators as the “words or symbols in one’s search phrase that make the search results more precise”. These operators have their basis in coding as they are nothing but shortcuts in procuring the best results Read more…
What us the purpose of multiple .htaccess files in CakePHP?
In Cakephp, contained .htaccess files are as follows:
CakePHP root directory .htaccess redirects everything to your CakePHP app Read more…
Purpose of Laravel Queue and How to use them with database
Page load time is an important aspect of any successful website, and one should not overlook the importance of that as it affects the SEO of the site and the overall end-user experience as Read more…
Database Migration in Laravel
Migrations allow us to easily share the database schema of your website. There are only a few commands to run to create database tables. If, we do it manually there is some chances of getting an error and it’s also time Read more…
Support for or a library in Laravel for sending emails
Laravel uses free feature-rich library SwiftMailer to send emails. It is easy to use. Email templates can be created and loaded in the same way as views.We can use the Blade file syntax for Read more…
Bootstrap Grid System and Breakpoints
Bootstrap Grid System
The Bootstrap Grid System uses the strategy of mobile first. Bootstrap Grid System divides the screen into 12 columns which can be joined to create wider columns according to the size of the Read more…
Configure CakePHP 3.6 in a Subfolder of WordPress
What do I actually want to do?
I want to access my WordPress site at example.com, while installing a CakePHP app on example.com/cakephp.
To achieve this, we need to install wordpress along with cakephp Read more…
Adding Multiple database server connections in PHPmyAdmin
We can use PHPmyAdmin for multiple database servers by adding them in the settings of PHPmyAdmin.
Steps to add a server in the UI of PHPmyAdmin:
Step 1: Click on Read more…
How to use CakePHP Validation class
We can use CakePHP validation functions and speed up development. These functions already follow the correct rules so we don’t need to write custom code.
$validate = new Validation();
$string = ‘Name123’;
$result = $validate->alphaNumeric ( $string );
if ($result Read more…
What support/library is there in CakePHP for sending emails and how to use it?
In CakePHP3, there are Transport and Email classes available under Cake/Network/Email namespace that are used for sending emails. After an update in the version 3.1 email functionality has Read more…
In one of the software we are developing, we faced a strange problem in Safari browser on Mac machine. A link on webpage was provided to download a file in .CSV format (server side code written in CakePHP). In Safari, downloaded file was being given the extension Read more…
Laravel Configuration and Environment Variables
Each laravel application has one “Config” directory which includes all the basic configuration files. You can configure your application by adding custom or built-in configuration variables.
Based on the environment where the application Read more…
Handling zip file download completion and cancellation event (PHP)
Problem: I am working on a project in which user needs to download a zip file from the website. I am creating zip file on the server temporarily which should be Read more…
Run artisan commands on shared hosting server (Laravel)
Laravel is a popular and excellent framework of php. It provides many functionalities out of the box like authentication, events, job queues, artisan commands and many more.
A problem on shared hosting- When Read more…
Stripe Payment Gateway Integration – The requested address was not found on this server
Stripe Payment Issue while capturing payment:
I was implementing Stripe payment in one of my cake3 project. My Stripe Charge Capture Request was Read more…
Steps to impersonate a user in Laravel (Login As another user)
Impersonate functionality allows you to impersonate other users, in order to see the application from their point of perspective, without having to log out and log in again. For instance, as an Super Admin, you Read more…
Here we will go through different Magic Methods in PHP
The PHP functions which starts with the double underscore “__” are called magic methods. These are the methods which are always defined in classes, and can not be used alone i.e. Read more…
Here is the process for creating and runnning multiple cron Jobs in Laravel
Cron: It is a scheduler which runs after a specific interval or at specific time. It should be used when developer wants to run a piece of code at a particular Read more…