free hit counter

Currency Conversion Using Google Calculator API

Currency Conversion Using Google Calculator API
  Google is a magical search engine. Google also provides many APIs to be incorporated in your application. Today, we will use Google’s hidden currency conversion API. Why hidden? Because there is no official documentation for it. We will build a currency converter from scratch, it pulls data from Google and display the results using ...

Create xml file in php dynamically

Create xml file in php dynamically
What are Sitemaps? sitemaps.org : Sitemaps are an easy way for webmasters to inform search engines about pages on their sites that are available for crawling. In its simplest form, a Sitemap is an XML file that lists URLs for a site along with additional metadata about each URL (when it was last updated, how ...

Get Days difference between two dates in today, yesterday 2 days ago, in 3 days etc in PHP

Get Days difference between two dates in today, yesterday 2 days ago, in 3 days etc in PHP
Get Days difference between two dates ! Examples of what the function can return; Today Yesterday Tomorrow In 2 days In 6 days 5 days ago Thursday 18 January Tuesday 19 January 2013   <?php       $my_timestamp = “2013-09-01 11:22:47″;   echo relative_date(strtotime($my_timestamp ));      function relative_date($time)   {       $today = strtotime(date(‘M j, Y’));       $reldays = ($time – $today)/86400;       if ($reldays >= 0 && $reldays < 1)       {           return ‘Today’;          } else if ($reldays >= 1 && $reldays < 2) {              return ‘Tomorrow’;          } else if ($reldays >= -1 && $reldays < 0) {              return ‘Yesterday’;       }   ...

Get country name using IP address in php

Get country name using IP address in php
Geo IP Lookup API The Geo IP Lookup API provides a variety of lookup methods. Below we will outline the different ways to get data from the Geo IP Lookup tool along with code samples of each: HTML The simplest way to get data from the API. There are 4 types of HTML output: countrycode, country, locale, and full. ...

How to Process Credit Cards with PayPal Payments Pro Using PHP

How to Process Credit Cards with PayPal Payments Pro Using PHP
What is paypal pro? Paypal pro is the Direct Credit Card processing API that allows you to checkout with credit card payments via PayPal directly on your site. The customer enters their credit card details on your site, never has to leave your site and PayPal handles the payment. Direct Payment API Introduction (By Paypal) ...

World Country And State Database In Mysql

World Country And State Database In Mysql
Are you looking for a database of countries regions and capitals for your website?   This database has country names, region names, capitals names and they’s latitude and longitude number  ..   countries regions cities 246 rows 4,148 rows 101,908 rows   World Country And State Database In Mysql Download    Best web hosting for 3 year in ...

World Time Zone Database

World Time Zone Database
World Time Zone Database Mysql Below is this list compiled into a handy static select menu:   Select A Timezone—–(GMT-12:00) International Date Line West(GMT-11:00) Midway Island(GMT-11:00) Samoa(GMT-10:00) Hawaii(GMT-09:00) Alaska(GMT-08:00) Pacific Time (US & Canada)(GMT-08:00) Tijuana(GMT-07:00) Arizona(GMT-07:00) Mountain Time (US & Canada)(GMT-07:00) Chihuahua(GMT-07:00) La Paz(GMT-07:00) Mazatlan(GMT-06:00) Central Time (US & Canada)(GMT-06:00) Central America(GMT-06:00) Guadalajara(GMT-06:00) Mexico City(GMT-06:00) ...

Data Cache In Cakephp

Data Cache In Cakephp
Cache The Cache helper assists in caching entire layouts and views, saving time repetitively retrieving data. View Caching in Cake temporarily stores parsed layouts and views with the storage engine of choice. It should be noted that the Cache helper works quite differently than other helpers. It does not have methods that are directly called. ...

SmartyStreets Address Verification API Integration In Php

SmartyStreets Address Verification API Integration In Php
verify addresses using smartystreets api   Sometimes the best way to learn a new API is to hit the ground running. Or, as Tony Stark says, “Sometimes you have to run before you can walk.” In accordance, here are some resources to help you fly (like Ironman does).   function Address_Verification($add1=null,$add2=null,$add3=null)   {       // Customize this (get ID/token values in your SmartyStreets account)       $authId = urlencode(“AUTH_ID_HERE”);       $authToken = urlencode(“AUTH_TOKEN_HERE”);       // Address input       $input1 = urlencode($add1);  // home address       $input2 = urlencode($add2);  // city and state here   ...

Encrypt Credit Card Data for Storage in a Database Using PHP

Encrypt Credit Card Data for Storage in a Database Using PHP
One of the issues with working in the software-as-a-service industry is that credit card numbers often have to be stored locally in a database. Keeping it on file with your payment gateway alone has a few limitations. The business folks may request storage for various reasons such as: Recurring subscriptions (often with variable amounts). Customers ...