PHP CURL Post Request Example

PHP cURL POST REQUEST

Hi friends, in this tutorial, you will learn how to send PHP curl post request to any URL and API endpoints. Before getting started with the tutorial, you must know the concept of CURL following with an example. What is CURL in PHP In PHP, cURL (Client URL Library) is a powerful and widely used … Read more

CCAvenue Payment Gateway Integration in PHP

CCAvenue Payment Gateway Integration in PHP

Hi friends, in this tutorial you will learn how to do the CCAvenue payment gateway integration in PHP. CCAvenue is one of India’s top payment gateways, including multiple payment options such as 200+ Mastercard, visa, Rupay, Netbanking, Wallet payments, UPI payments, etc., along with multi-currency options. This payment gateway is very fast, simple, and secure … Read more

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes

1071 Specified key was too long

Hi friends, in this tutorial, you will learn how to resolve SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table users add unique users_email_unique(email)). This error occurs when we run the database migrations in any of the Laravel projects with the help of … Read more

Delete a row in MySQL

Hi friends, in this tutorial you will learn how to delete a row in MySQL. Actually, there are two ways by which you can perform the delete operations in MySQL. In order to do so, you must have some data inside the table of your database. Suppose, I have table ‘employee‘ in my database as … Read more

JSON encode and decode in PHP

Hi friends, in this tutorial you will learn JSON encode and decode in PHP. Before getting started with JSON with respect to PHP, you must know what JSON means exactly. JSON is nothing but a javascript object notation with a specific syntax or format as shown below. {‘key’:value,’key1′:value1,’key2′:value2,’key3′:value3} Why we use JSON:- However, if we … Read more

PHP Rest API Example

Hi friends, if you are wondering on how to create a PHP Rest API or perform a CRUD operation using PHP Rest API then you have come to the right place. Creation of rest API is very easy and I am going to explain it in a step-by-step process. In this example, you will learn … Read more