Tuesday, 10 March 2015

Credit Card validation regex script in PHP using Luhn algorithm


Credit card validation is essential for e-commerce websites. Credit card numbers entered by users will not be necessarily correct always. The credit card payment processing companies (visa,mastercard) charge merchandise for each transaction carried out. This also includes the failed transactions. Therefore it becomes essential to validate the credit card number before sending it to the payment gateways. The unique credit card numbers are generated by the issuing banks using "Luhn formula". This tutorial explains how to validate the credit card number entered by user and get the name of the payment network (visa, mastercard etc..) of the credit card. There are different formats for the credit card numbers allotted by the payment networks. The various payment networks and their credit card number formats are given below.

Friday, 14 November 2014

Using Diffuse comparing and merging text files in Ubuntu

Diffuse is a graphical tool for comparing and merging text files. It can work with many revision control systems as a diff viewer or merge tool. Diffuse is able to compare an arbitrary number of files side-by-side (n-way merge), and gives the user the ability to manually correct line matching and directly edit the files.

Install Diffuse in Ubuntu
open Terminal Type Command:
sudo apt-get install diffuse
After compilation Installation, In terminal type
diffuse file1 file2

Eg:diffuse source.php sourcedemo.php

diffuse will be display like:

Thursday, 16 October 2014

FourSquare API integration with PHP website


Hi Friends Previously Explain about how to create Foursquare App, Now Explain Integrating Foursquare in Website using PHP with App Credentials Now, we will use a PHP library which is readily available here: Foursquare Libraries We will use the PHP one marked in red in below screenshot:

Tuesday, 14 October 2014

How to create a Foursquare app ?


Hi Friends Previously I am Explain about how to create Facebook , Twitter and Google App, Now Expalin about how to create Foursquare App It is very is process completed in 3 steps.
1. Go to Developers section of FourSquare and click on My Apps at the top of the page.Foursquare

Friday, 10 October 2014

Snow Effect using jQuery


In this article explain about snow effect using jquery the following code is used for display snow effect, In this using size and colr values are minSize:5,maxSize:10,flakeColor:white.



Wednesday, 8 October 2014

Security for online webfolders using .htaccess

Today I am going to tell you about .htaccess file, this is very basic thing to hide folder file lists by using htaccess, when we are holding some file in our website that files are listed as file in web folder. So that is hack-able by visitor or hackers, so we have to make secure our web folder files. for that we are going to use htaccess.

Saturday, 20 September 2014

Add Contacts to Gamil using PHP Curl


Hi Friends I am previously Explan about how to getting google(Gmail) contacts using Google API with php, you can find the process of getting gamil contacts Article here Getting Google Contacts
Now explain about how to add contacts to our gmail account it is very is process through PHP Curl in this process we need "access_token". the following snippet of code is used for add contacts to my gmail account.