PHP

Install MPDF 7.x on https://www.ionos.com/

Author - Ishpreet kaur
|
0 Comments
|

How to install MPDF 7.x for PHP version > 5.6 on https://www.ionos.com/ and use in PHP Project?

Since from January 2019, https://www.ionos.com/ has been resisting the use of PHP version 5.6, it is supporting PHP versions >= 7.1 Read more…

Send Emails Using Mandrill

Author - Pawandeep Kaur
|
0 Comments
|

How to Send Emails Using Mandrill

Mandrill is a transactional email platform which was built by Mailchimp. It is used for sending the personalized, one-to-one e-commerce emails, and automated transactional emails like password resets, order confirmations, and welcome messages

Steps:
1. Firstly we Read more…

How to Detect Mobile devices in php

Author - Gopi Garg

Detect mobile device php code

We often need to detect if site visitor is using an iPad, a smartphone or any other mobile device in order to change website appearance and even make it faster by reducing data load. Normally we use the media queries and Read more…

Salesforce SOAP and Bulk API Integration in PHP

Author - Ashish Gautam

Implementing Salesforce SOAP and Bulk API Integration in PHP

Salesforce SOAP API:
Salesforce SOAP API is a coding method to use our Org’s information with the help of inbuilt functions and SOQL query. With the help of these function, we can access or Read more…

Creating custom plugins in wordpress

Author - Mamta Sharma

How to Create a custom plugins in wordpress

What is a WordPress plugin:
A plugin in WordPress is a small software app that can be added to a WordPress site to extend its functionality and to add new features to it without changing its Read more…

Class ‘App\Controller\Aws\S3\S3Client’ not found error in CakePHP 3.*

Author - Kailash Kumar

How to resolve “Class ‘App\Controller\Aws\S3\S3Client’ not found” error in CakePHP 3.*

Problem: Class ‘App\Controller\Aws\S3\S3Client’ not found error occurs when we are trying to create S3Client class object with given code (code copied from github):

$s3 = new Read more…

Using Laravel Eloquent ORM

Author - Umang Pasricha

Introduction to Laravel Eloquent ORM

Introduction:

Eloquent ORM is an Object Relational Mapper that interacts with the database. It is a package separate from laravel so can be used outside the laravel too. It implements active record pattern. Laravel Eloquent ORM uses Object-Oriented Read more…

Sort query result according to search conditions in CakePHP 2.

Author - Kailash Kumar
|
0 Comments
|

How to sort query result according to various search conditions in fetch query of CakePHP 2.

Problem: Priority based sorting of records

Example: Search a string (“Proposalways StudySection”) and display records in following order:

Contain all words (“Proposalways StudySection”) in Read more…

Handle data from .msg file parsed by IndependentSoft’s msg.net package

Author - Varun Chopra

Handle data from .msg file parsed by IndependentSoft’s msg.net package

IndepentSoft’s MSG.NET package is used for parsing of outlook .msg files for reading the contents of file and which can be used to display contents on screen or in our custom viewer Read more…

Salesforce – How to do it right

Author - Varun Chopra

Salesforce – How to do it right

Moving on from managing your customer relationships in a worksheet and deciding to do that in a CRM system like Salesforce is a big step forward. If you have already taken that step and you are a Salesforce customer, congratulations Read more…

Understanding PHP CS-FIXER with example

Author - Gopi Chand

Steps to Understand PHP CS-FIXER with example

Introduction

The PHP coding standards fixer tool is used to solve many issues (syntax, indentation etc) in your code when you want to follow the PHP coding standards defined in PSP-1 and PSR-2 Documents Read more…

What is the purpose of multiple .htaccess files in CakePHP?

Author - Varun Chopra

Purpose of multiple .htaccess files in CakePHP

In Cakephp, contained .htaccess files are as follows:

newcakeproject/.htaccess
/app/.htaccess
/app/webroot/.htaccess

1. newcakeproject/.htaccess

CakePHP root directory .htaccess redirects everything to your CakePHP app (means to webroot). We can also redirect the url to some Read more…

Login With Facebook in PHP

Author - Varun Chopra
|
0 Comments
|

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…

Using Google Search Operators

Author - Mayank Srivastava

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…

Sending Emails in CakePHP with Example

Author - Sahil Bhalla
|
0 Comments
|

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…

Data Sanitization using PHP

Author - Kailash Kumar
|
0 Comments
|

Understanding PHP data sanitization with an example

In PHP data sanitization is a process in which we remove unwanted content from the strings to make them safe to use in HTML code. For example if user types Javascript code in a textbox and we want to Read more…

SequenceMatcher in Python and Calling Python Script in PHP

Author - Mahesh Kumar
|
0 Comments
|

Introduction to SequenceMatcher in Python and Calling Python Script in PHP

SequenceMatcher is a class in Python which compares pairs of sequences of any type.SequenceMatcher is a class which comes under the difflib module. It provides classes and functions for comparing sequences. It can be Read more…

Laravel Configuration and Environment Variables

Author - Pawandeep Kaur
|
0 Comments
|

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.

Environment Configuration:
Based on the environment where the application Read more…

Handling zip file download completion and cancellation event in PHP

Author - Harpal Singh
|
0 Comments
|

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…

Why and How to use spl_autoload_register?

Author - Gopi Chand
|
0 Comments
|

Purpose and Usage of spl_autoload_register with example

__autoload is an older method. This method was first introduced in PHP 5 as a magic function but now this method is deprecated as of PHP version 7.2.0. If we want our code to be compatible with Read more…