PHP

Recent Tutorial

PHP Cache for Dynamic Web Pages

October 16, 2015
Caching a dynamic web page is very important. When developing a website using PHP, the cache is often overlooked. Cache helps to increase the speed of the website response. In the web, nanosecond performance improvement can make wonders. If your site depends on search engine traffic, then cache should be your foremost priority. Google considers […]
This tutorial was added to PHP.

PHP Shopping Cart by jQuery Drag and Drop

September 20, 2015
In this tutorial, we are going to see a shopping cart example. In this example, we are adding products to cart by using drag and drop. In a previous tutorial, we have seen PHP shopping cart with jQuery AJAX. In this example, we are having draggable product items. We are adding these items to cart […]
This tutorial was added to PHP.

Paypal Payment Gateway Integration in PHP

August 21, 2015
In this tutorial, we are going to see about how to integrate payment gateway in PHP via Paypal. We are going to see an example code in PHP for payment integration. In this example, we are using Paypal sandbox (test) mode to check payment flow before going live. Paypal Payment Integration Steps Login / Sign […]
This tutorial was added to PHP.

Generate PDF from MySQL Data using FPDF

June 8, 2015
In this tutorial, we are going to see how to generate PDF from MySQL table by using FPDF library. In a previous tutorial, we have seen about simple PDF generation from a text file content by using this library. In this example, we read MySQL table data by using PHP. And then we are calling […]
This tutorial was added to PHP.

Shopping Cart with Multi-Tab Wizard using jQuery AJAX

June 6, 2015
In this tutorial, we are going to see a wizard like a shopping cart. In a previous tutorial, we have seen shopping cart with jQuery AJAX. In this wizard-like shopping cart example, we separate products and cart items by using tabs. While adding products, the cart tab is updated with the cart item count. View […]
This tutorial was added to PHP.

PHP PDF Generation using FPDF

May 25, 2015
In this tutorial, we are going to generate PDF from text file data using PHP FPDF library. In this library, there are features to add PDF page, set font, create grid and more. In this example, we are having a text file containing toys detail. We are reading this file content and show it in […]
This tutorial was added to PHP.

PHP Shopping Cart with jQuery AJAX

May 20, 2015
In this tutorial, we are going to create a shopping cart using jQuery AJAX. In a¬†previous tutorial, we have seen simple shopping cart code using PHP without jQuery or AJAX. In this shopping cart example, we can add products to the cart to checkout. Using jQuery we are updating product status in UI whether it […]
This tutorial was added to PHP.

PHP JSON Array Merge

May 14, 2015
In this tutorial, we are going to see about how to merge two or more JSON string. This can be done by decoding given JSON objects and encoding after the merge. In this example, we are having two JSON objects to merge together. These objects will be decoded into an associative array and encoded after […]
This tutorial was added to PHP.

Calculating Hours Difference in PHP

April 15, 2015
In PHP, there are many ways to calculate the difference between two dates. In this tutorial, we are using PHP date time functions to calculate the hour¬†difference between two dates. In this example, we are start and end dates from the user. And then, we use strtotime() to convert the date string into timestamp to […]
This tutorial was added to PHP.

PHP Wizard Like Registration

February 15, 2015
Wizard like registration separates registration fields into groups. These group of fields can be seen using a tab-like navigation. In the previous tutorial, we have seen simple PHP registration without a wizard. In this example, we have three tabs to separate the registration form fields. The user can navigate via the registration wizard using previous […]
This tutorial was added to PHP.

Show PHP Captcha on Failed Login Attempts

February 2, 2015
In this tutorial, we are going to show captcha code if a user tried more than 3 failed login attempts. In the previous tutorial, we have seen user login and PHP captcha. So, we are going to combine this two tutorial to add captcha control for invalid login. In this example, we have a MySQL […]
This tutorial was added to PHP.

Sorting MySQL Row Order using jQuery

January 31, 2015
In this tutorial we are going to learn how to change the MySQL row order. We are using jQuery to display sortable list of MySQL rows. We are using jQuery sortable() function to change the row order by drag and drop the rows. After changing we should save the new order in database. View Demo […]
This tutorial was added to PHP.

Read Facebook Data via Graph API using PHP

December 8, 2014
In this tutorial, we are going to read data from Facebook by using Graph API. This is an HTTP-based API using which we can post and get data to and from the Facebook social graph. In this example, we are going to get some basic data like id, name, and profile picture by sending Facebook […]
This tutorial was added to PHP.

User Login Session Timeout Logout in PHP

November 24, 2014
This PHP tutorial is used for setting user login session expiration time for the logged-in user. Once, this time is elapsed then the user no longer access the authenticated pages of the application. In the previous tutorial, we have created session variables once a user logged in to our application. In this tutorial, we are […]
This tutorial was added to PHP.

User Activation Email Sending Script in PHP

November 23, 2014
In this tutorial, we are going to see how to send user activation email after user registration. In the previous tutorial, we have seen the code for adding a new user to our database with a registration form example. In this example, we are using the same code with slight modification. We have added duplicate […]
This tutorial was added to PHP.

↑ Back to Top