PHP

Recent Tutorial

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 about how to generate PDF from MySQL table by using FPDF library. In 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 shopping cart. In 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 Demo […]
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 shopping cart using jQuery AJAX. In 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 is […]
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 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 array […]
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 datetime functions to calculate the hours 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 previous tutorial we have seen simple PHP registration without wizard. In this example we have three tabs to separate the registration form fields. User can navigate via the registration wizard using previous and next […]
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 an user tried more than 3 failed login attempts. In previous tutorial we have seen user login and php captcha. So, we are going to combine these two tutorial to add captcha control for invalid login. In this example, we have an MySQL table […]
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 Facebook social graph. In this example we are going to get some basic data like id, name and profile-picture by sending Facebook profile […]
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 previous tutorial, we have created session variables once an user logged in to our application. In this tutorial we are going […]
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 previous tutorial, we have seen the code for adding 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 email validation […]
This tutorial was added to PHP.

PHP User Registration Form

November 22, 2014
In this tutorial we are going to see an example for creating new user registration form. In previous tutorial, while seeing PHP form validation we have seen a registration form example. In this example, first we are validating registration form input validation. And then, we are adding form data to the user table after successful […]
This tutorial was added to PHP.

PHP RSS Feed Read and List

November 7, 2014
PHP provides simplexml_load_file() function for reading data from xml file. We have seen about this function in Simple XML Parser tutorial. Using this function, we are going to read RSS feeds by passing the feed URL to this function. In this tutorial, we are parsing RSS feed and splitting it into an object array. By […]
This tutorial was added to PHP.

↑ Back to Top