<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bagesh Singh&#039;s Blog &#187; api</title>
	<atom:link href="http://www.bageshsingh.com/bagesh-blog/tag/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bageshsingh.com/bagesh-blog</link>
	<description>Shortest Distance to  Web Solutions &#38; Software Solutions</description>
	<lastBuildDate>Wed, 22 Feb 2012 18:42:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Getting country , city name from IP address in PHP</title>
		<link>http://www.bageshsingh.com/bagesh-blog/2010/11/getting-country-city-name-from-ip-address-in-php-4/</link>
		<comments>http://www.bageshsingh.com/bagesh-blog/2010/11/getting-country-city-name-from-ip-address-in-php-4/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 17:07:44 +0000</pubDate>
		<dc:creator>Bagesh Singh</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[Interview Question]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips and technique]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web services]]></category>
		<category><![CDATA[api]]></category>

		<guid isPermaLink="false">http://www.bageshsingh.com/bagesh-blog/?p=918</guid>
		<description><![CDATA[Yesterday, Miky  asked me how can we get the country name from the IP address in PHP. Today, I’ve come up with the answer of this question. I’ve used the API from hostip.info to fetch the country name , city name and country code from the given IP address. I’ve mad this function in PHP [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, Miky  asked me how can we get the country name from the IP address in PHP. Today, I’ve come up with the answer of this question. I’ve used the API from hostip.info to fetch the country name , city name and country code from the given IP address. I’ve mad this function in PHP which uses XML response from hostip.info and extracted country name, city name and country code using regular expression.</p>
<h4>Function to return country, city name from IP address in PHP</h4>
<pre>function countryCityFromIP($ipAddr)
{
//function to find country and city from IP address
//Developed by Roshan Bhattarai http://roshanbh.com.np
//verify the IP address for the
ip2long($ipAddr)== -1 || ip2long($ipAddr) === false ? trigger_error("Invalid IP", E_USER_ERROR) : "";
$ipDetail=array(); //initialize a blank array
//get the XML result from hostip.info
$xml = file_get_contents("http://api.hostip.info/?ip=".$ipAddr);
//get the city name inside the node &lt;gml:name&gt; and &lt;/gml:name&gt;
preg_match("@&lt;Hostip&gt;(\s)*&lt;gml:name&gt;(.*?)&lt;/gml:name&gt;@si",$xml,$match);
//assing the city name to the array
$ipDetail['city']=$match[2];
//get the country name inside the node &lt;countryName&gt; and &lt;/countryName&gt;
preg_match("@&lt;countryName&gt;(.*?)&lt;/countryName&gt;@si",$xml,$matches);
//assign the country name to the $ipDetail array
$ipDetail['country']=$matches[1];
//get the country name inside the node &lt;countryName&gt; and &lt;/countryName&gt;
preg_match("@&lt;countryAbbrev&gt;(.*?)&lt;/countryAbbrev&gt;@si",$xml,$cc_match);
$ipDetail['country_code']=$cc_match[1]; //assing the country code to array
//return the array containing city, country and country code
return $ipDetail;
}</pre>
<p>As you can see, I’ve documented all the PHP code and I don’t think I need explain anymore about that code. Just notice that, this function returns the array containg three key elements “country” , “city” and “country_code”. Each elements have the value of city, country and country code.</p>
<p>Now, look the the how we can use the above function in PHP,</p>
<pre>$IPDetail=countryCityFromIP('12.215.42.19');
echo $IPDetail['country']; //country of that IP address
echo $IPDetail['city']; //outputs the IP detail of the city</pre>
<p>Notice that the above PHP function returns the array containing the country , city and country code from IP Address and we can use them in PHP. If you want to know how to get IP address in PHP, you can check this post how you can get real IP address in PHP.</p>
<div id="seo_alrp_related"><h2>Posts Related to Getting country , city name from IP address in PHP</h2><ul><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/getting-country-city-name-from-ip-address-in-php-3/" rel="bookmark">Getting country , city name from IP address in PHP</a></h3><p>esterday, miaki asked me how can we get the country name from the IP address in PHP. Today, I’ve come up with the answer of ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/03/getting-country-city-name-from-ip-address-in-php/" rel="bookmark">Getting country , city name from IP address in PHP</a></h3><p>Yesterday, miaki asked me how can we get the country name from the IP address in PHP. Today, I</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/03/getting-country-city-name-from-ip-address-in-php-2/" rel="bookmark">Getting country , city name from IP address in PHP</a></h3><p>Yesterday, miaki asked me how can we get the country name from the IP address in PHP. Today, I</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/change-dropdown-list-options-values-from-database-with-ajax-and-php-3/" rel="bookmark">Change dropdown list (options) values from database with ajax and php</a></h3><p>I’m going to show you a example in php and ajax to change the values of the dropdown’s options without refreshing the page. The values ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/change-dropdown-list-options-values-from-database-with-ajax-and-php-2/" rel="bookmark">Change dropdown list (options) values from database with ajax and php</a></h3><p>I’m going to show you a example in php and ajax to change the values of the dropdown’s options without refreshing the page. The values ...</p></div></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.bageshsingh.com/bagesh-blog/2010/11/getting-country-city-name-from-ip-address-in-php-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting country , city name from IP address in PHP</title>
		<link>http://www.bageshsingh.com/bagesh-blog/2010/11/getting-country-city-name-from-ip-address-in-php-3/</link>
		<comments>http://www.bageshsingh.com/bagesh-blog/2010/11/getting-country-city-name-from-ip-address-in-php-3/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 17:15:49 +0000</pubDate>
		<dc:creator>Bagesh Singh</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[Interview Question]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips and technique]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[web services]]></category>

		<guid isPermaLink="false">http://www.bageshsingh.com/bagesh-blog/?p=832</guid>
		<description><![CDATA[esterday, miaki asked me how can we get the country name from the IP address in PHP. Today, I’ve come up with the answer of this question. I’ve used the API from hostip.info to fetch the country name , city name and country code from the given IP address. I’ve mad this function in PHP [...]]]></description>
			<content:encoded><![CDATA[<p>esterday,  miaki asked me how can we get the country name from the IP address in PHP. Today, I’ve come up with the answer of this question. I’ve used the API from hostip.info to fetch the country name , city name and country code from the given IP address. I’ve mad this function in PHP which uses XML response from hostip.info and extracted country name, city name and country code using regular expression.</p>
<h4>Function to return country, city name from IP address in PHP</h4>
<pre>function countryCityFromIP($ipAddr)
{
//function to find country and city from IP address
//Developed by Roshan Bhattarai http://roshanbh.com.np
//verify the IP address for the
ip2long($ipAddr)== -1 || ip2long($ipAddr) === false ? trigger_error("Invalid IP", E_USER_ERROR) : "";
$ipDetail=array(); //initialize a blank array
//get the XML result from hostip.info
$xml = file_get_contents("http://api.hostip.info/?ip=".$ipAddr);
//get the city name inside the node &lt;gml:name&gt; and &lt;/gml:name&gt;
preg_match("@&lt;Hostip&gt;(\s)*&lt;gml:name&gt;(.*?)&lt;/gml:name&gt;@si",$xml,$match);
//assing the city name to the array
$ipDetail['city']=$match[2];
//get the country name inside the node &lt;countryName&gt; and &lt;/countryName&gt;
preg_match("@&lt;countryName&gt;(.*?)&lt;/countryName&gt;@si",$xml,$matches);
//assign the country name to the $ipDetail array
$ipDetail['country']=$matches[1];
//get the country name inside the node &lt;countryName&gt; and &lt;/countryName&gt;
preg_match("@&lt;countryAbbrev&gt;(.*?)&lt;/countryAbbrev&gt;@si",$xml,$cc_match);
$ipDetail['country_code']=$cc_match[1]; //assing the country code to array
//return the array containing city, country and country code
return $ipDetail;
}</pre>
<p><a href="http://roshanbh.com.np/codes/country-ip.phps">Download Source Code</a></p>
<p>As you can see, I’ve documented all the PHP code and I don’t think I need explain anymore about that code. Just notice that, this function returns the array containg three key elements “country” , “city” and “country_code”. Each elements have the value of city, country and country code.</p>
<p>Now, look the the how we can use the above function in PHP,</p>
<pre>$IPDetail=countryCityFromIP('12.215.42.19');
echo $IPDetail['country']; //country of that IP address
echo $IPDetail['city']; //outputs the IP detail of the city</pre>
<p>Notice that the above PHP function returns the array containing the country , city and country code from IP Address and we can use them in PHP. If you want to know how to get IP address in PHP, you can check this post how you can get real IP address in PHP.</p>
<div id="seo_alrp_related"><h2>Posts Related to Getting country , city name from IP address in PHP</h2><ul><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/getting-country-city-name-from-ip-address-in-php-4/" rel="bookmark">Getting country , city name from IP address in PHP</a></h3><p>Yesterday, Miky  asked me how can we get the country name from the IP address in PHP. Today, I’ve come up with the answer of ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/03/getting-country-city-name-from-ip-address-in-php/" rel="bookmark">Getting country , city name from IP address in PHP</a></h3><p>Yesterday, miaki asked me how can we get the country name from the IP address in PHP. Today, I</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/03/getting-country-city-name-from-ip-address-in-php-2/" rel="bookmark">Getting country , city name from IP address in PHP</a></h3><p>Yesterday, miaki asked me how can we get the country name from the IP address in PHP. Today, I</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/change-dropdown-list-options-values-from-database-with-ajax-and-php-3/" rel="bookmark">Change dropdown list (options) values from database with ajax and php</a></h3><p>I’m going to show you a example in php and ajax to change the values of the dropdown’s options without refreshing the page. The values ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/change-dropdown-list-options-values-from-database-with-ajax-and-php-2/" rel="bookmark">Change dropdown list (options) values from database with ajax and php</a></h3><p>I’m going to show you a example in php and ajax to change the values of the dropdown’s options without refreshing the page. The values ...</p></div></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.bageshsingh.com/bagesh-blog/2010/11/getting-country-city-name-from-ip-address-in-php-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting country , city name from IP address in PHP</title>
		<link>http://www.bageshsingh.com/bagesh-blog/2010/03/getting-country-city-name-from-ip-address-in-php-2/</link>
		<comments>http://www.bageshsingh.com/bagesh-blog/2010/03/getting-country-city-name-from-ip-address-in-php-2/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 11:28:52 +0000</pubDate>
		<dc:creator>Bagesh Singh</dc:creator>
				<category><![CDATA[web services]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.bageshsingh.com/bagesh-blog/2010/03/getting-country-city-name-from-ip-address-in-php-2/</guid>
		<description><![CDATA[Yesterday, miaki asked me how can we get the country name from the IP address in PHP. Today, I Posts Related to Getting country , city name from IP address in PHPGetting country , city name from IP address in PHPYesterday, miaki asked me how can we get the country name from the IP address [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday,  miaki asked me how can we get the  country name from the IP address in PHP. Today, I</p>
<div id="seo_alrp_related"><h2>Posts Related to Getting country , city name from IP address in PHP</h2><ul><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/03/getting-country-city-name-from-ip-address-in-php/" rel="bookmark">Getting country , city name from IP address in PHP</a></h3><p>Yesterday, miaki asked me how can we get the country name from the IP address in PHP. Today, I</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/getting-country-city-name-from-ip-address-in-php-3/" rel="bookmark">Getting country , city name from IP address in PHP</a></h3><p>esterday, miaki asked me how can we get the country name from the IP address in PHP. Today, I’ve come up with the answer of ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/getting-country-city-name-from-ip-address-in-php-4/" rel="bookmark">Getting country , city name from IP address in PHP</a></h3><p>Yesterday, Miky  asked me how can we get the country name from the IP address in PHP. Today, I’ve come up with the answer of ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/change-dropdown-list-options-values-from-database-with-ajax-and-php-3/" rel="bookmark">Change dropdown list (options) values from database with ajax and php</a></h3><p>I’m going to show you a example in php and ajax to change the values of the dropdown’s options without refreshing the page. The values ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/change-dropdown-list-options-values-from-database-with-ajax-and-php-2/" rel="bookmark">Change dropdown list (options) values from database with ajax and php</a></h3><p>I’m going to show you a example in php and ajax to change the values of the dropdown’s options without refreshing the page. The values ...</p></div></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.bageshsingh.com/bagesh-blog/2010/03/getting-country-city-name-from-ip-address-in-php-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Services and PHP</title>
		<link>http://www.bageshsingh.com/bagesh-blog/2010/03/web-services-and-php-%e2%80%93-soap-vs-xml-rpc-vs-rest-2/</link>
		<comments>http://www.bageshsingh.com/bagesh-blog/2010/03/web-services-and-php-%e2%80%93-soap-vs-xml-rpc-vs-rest-2/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 11:28:02 +0000</pubDate>
		<dc:creator>Bagesh Singh</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[web services]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[SOAP]]></category>
		<category><![CDATA[XML-RPC]]></category>

		<guid isPermaLink="false">http://www.bageshsingh.com/bagesh-blog/?p=217</guid>
		<description><![CDATA[What is web services? In a typical web surfing scenario, a visitor visits a website and use the functionality provided by that particular website.HTTP request is send to server from web browsers and server responses are translated by browser to display the desired result of the visitor. But, this scenario has been changed in the [...]]]></description>
			<content:encoded><![CDATA[<h4>What is web services?</h4>
<p>In a typical web surfing scenario, a  visitor visits a website and use the functionality provided by that  particular website.HTTP request is send to server from web browsers and  server responses are translated by browser to display the desired result  of the visitor. But, this scenario has been changed in the recent days.  You don</p>
<div id="seo_alrp_related"><h2>Posts Related to Web Services and PHP </h2><ul><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/03/web-services-and-php-%e2%80%93-soap-vs-xml-rpc-vs-rest/" rel="bookmark">Web Services and PHP</a></h3><p>What is web services? In a typical web surfing scenario, a visitor visits a website and use the functionality provided by that particular website.HTTP request ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/06/how-to-check-the-user%e2%80%99s-browser-type-and-platform-in-php/" rel="bookmark">How to check the user</a></h3><p>Sooner or later it might become necessary to write an application that tracks site visitor browser types. Here</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2011/05/php-mysql-functions-list/" rel="bookmark">PHP Mysql Functions List</a></h3><p>mysql_affected_rows — Get number of affected rows in previous MySQL operation mysql_change_user — Change logged in user of the active connection mysql_client_encoding — Returns the ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2011/01/drupal-training-in-delhi/" rel="bookmark">Drupal Training in delhi</a></h3><p>PHP, or PHP: Hypertext Preprocessor, is a widely used, general-purpose scripting language that was originally designed for web development, to produce dynamic web pages. It ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/02/how-to-redirect-browser-to-https-ssl-in-php/" rel="bookmark">How to redirect browser to https (ssl) in php</a></h3><p>Most of the e-commerce website uses payment gateway for online payment. And, those sites uses SSL (secure socket layer) connection to transfer data to and ...</p></div></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.bageshsingh.com/bagesh-blog/2010/03/web-services-and-php-%e2%80%93-soap-vs-xml-rpc-vs-rest-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting technorati ranking in PHP without using their API</title>
		<link>http://www.bageshsingh.com/bagesh-blog/2010/03/getting-technorati-ranking-in-php-without-using-their-api/</link>
		<comments>http://www.bageshsingh.com/bagesh-blog/2010/03/getting-technorati-ranking-in-php-without-using-their-api/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 16:19:55 +0000</pubDate>
		<dc:creator>Bagesh Singh</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[technorati]]></category>

		<guid isPermaLink="false">http://www.bageshsingh.com/bagesh-blog/?p=113</guid>
		<description><![CDATA[Today, I was going through the Technorati API to find the rank of the blog using PHP. Those who doesn Posts Related to Getting technorati ranking in PHP without using their APITop 25 Celebrity Blogs on bageshsingh.comIt is time to cover another niche on our Top 25 series. Celebrity blogs are among the most popular [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I was going through the Technorati API to find the rank of the blog using PHP. Those who doesn</p>
<div id="seo_alrp_related"><h2>Posts Related to Getting technorati ranking in PHP without using their API</h2><ul><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/04/top-25-celebrity-blogs-on-bageshsingh-com/" rel="bookmark">Top 25 Celebrity Blogs on bageshsingh.com</a></h3><p>It is time to cover another niche on our Top 25 series. Celebrity blogs are among the most popular on the Internet. People just love ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/08/list-of-social-bookmarking-sites/" rel="bookmark">List of social bookmarking sites</a></h3><p>A good way for sites or articles to get known is submitting to social bookmarking sites, so submitting should be as easy as possible for ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/09/ten-tips-for-improving-the-alexa-page-rank-of-your-webpage/" rel="bookmark">Ten tips for improving the Alexa page rank of your webpage.</a></h3><p>Installing the Alexa Toolbar to Increase Your Alexa Ranking : Until You have not installed your alexa ToolBar ,No need for reading further and thinking ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/07/google-to-penalize-or-ban-your-website/" rel="bookmark">Google To Penalize Or Ban Your Website?</a></h3><p>It's a simple question... Are you asking Google to penalize your website? I'm sure you're probably thinking; Well, of course not! Yet daily I see ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/03/get-free-ebooks-of-essential-php-and-javascript-tips-tricks-hacks/" rel="bookmark">Get free ebooks of essential PHP and JavaScript tips , tricks &#038; Hacks</a></h3><p>As you might know that this blog and tradepub.com are providing free magazines to the reader of this blog. You can check the free magazines ...</p></div></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.bageshsingh.com/bagesh-blog/2010/03/getting-technorati-ranking-in-php-without-using-their-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting country , city name from IP address in PHP</title>
		<link>http://www.bageshsingh.com/bagesh-blog/2010/03/getting-country-city-name-from-ip-address-in-php/</link>
		<comments>http://www.bageshsingh.com/bagesh-blog/2010/03/getting-country-city-name-from-ip-address-in-php/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 16:19:00 +0000</pubDate>
		<dc:creator>Bagesh Singh</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[web services]]></category>

		<guid isPermaLink="false">http://www.bageshsingh.com/bagesh-blog/?p=111</guid>
		<description><![CDATA[Yesterday, miaki asked me how can we get the country name from the IP address in PHP. Today, I Posts Related to Getting country , city name from IP address in PHPGetting country , city name from IP address in PHPYesterday, miaki asked me how can we get the country name from the IP address [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday,  miaki asked me how can we get the country name from the IP address in PHP. Today, I</p>
<div id="seo_alrp_related"><h2>Posts Related to Getting country , city name from IP address in PHP</h2><ul><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/03/getting-country-city-name-from-ip-address-in-php-2/" rel="bookmark">Getting country , city name from IP address in PHP</a></h3><p>Yesterday, miaki asked me how can we get the country name from the IP address in PHP. Today, I</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/getting-country-city-name-from-ip-address-in-php-3/" rel="bookmark">Getting country , city name from IP address in PHP</a></h3><p>esterday, miaki asked me how can we get the country name from the IP address in PHP. Today, I’ve come up with the answer of ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/getting-country-city-name-from-ip-address-in-php-4/" rel="bookmark">Getting country , city name from IP address in PHP</a></h3><p>Yesterday, Miky  asked me how can we get the country name from the IP address in PHP. Today, I’ve come up with the answer of ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/change-dropdown-list-options-values-from-database-with-ajax-and-php-3/" rel="bookmark">Change dropdown list (options) values from database with ajax and php</a></h3><p>I’m going to show you a example in php and ajax to change the values of the dropdown’s options without refreshing the page. The values ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/change-dropdown-list-options-values-from-database-with-ajax-and-php-2/" rel="bookmark">Change dropdown list (options) values from database with ajax and php</a></h3><p>I’m going to show you a example in php and ajax to change the values of the dropdown’s options without refreshing the page. The values ...</p></div></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.bageshsingh.com/bagesh-blog/2010/03/getting-country-city-name-from-ip-address-in-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Web Services and PHP</title>
		<link>http://www.bageshsingh.com/bagesh-blog/2010/03/web-services-and-php-%e2%80%93-soap-vs-xml-rpc-vs-rest/</link>
		<comments>http://www.bageshsingh.com/bagesh-blog/2010/03/web-services-and-php-%e2%80%93-soap-vs-xml-rpc-vs-rest/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 16:17:20 +0000</pubDate>
		<dc:creator>Bagesh Singh</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[SOAP]]></category>
		<category><![CDATA[web services]]></category>
		<category><![CDATA[XML-RPC]]></category>

		<guid isPermaLink="false">http://www.bageshsingh.com/bagesh-blog/?p=109</guid>
		<description><![CDATA[What is web services? In a typical web surfing scenario, a visitor visits a website and use the functionality provided by that particular website.HTTP request is send to server from web browsers and server responses are translated by browser to display the desired result of the visitor. But, this scenario has been changed in the [...]]]></description>
			<content:encoded><![CDATA[<h4>What is web services?</h4>
<p>In a typical web surfing scenario, a visitor visits a website and use the functionality provided by that particular website.HTTP request is send to server from web browsers and server responses are translated by browser to display the desired result of the visitor. But, this scenario has been changed in the recent days. You don</p>
<div id="seo_alrp_related"><h2>Posts Related to Web Services and PHP </h2><ul><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/03/web-services-and-php-%e2%80%93-soap-vs-xml-rpc-vs-rest-2/" rel="bookmark">Web Services and PHP</a></h3><p>What is web services? In a typical web surfing scenario, a visitor visits a website and use the functionality provided by that particular website.HTTP request ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/06/how-to-check-the-user%e2%80%99s-browser-type-and-platform-in-php/" rel="bookmark">How to check the user</a></h3><p>Sooner or later it might become necessary to write an application that tracks site visitor browser types. Here</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2011/05/php-mysql-functions-list/" rel="bookmark">PHP Mysql Functions List</a></h3><p>mysql_affected_rows — Get number of affected rows in previous MySQL operation mysql_change_user — Change logged in user of the active connection mysql_client_encoding — Returns the ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2011/01/drupal-training-in-delhi/" rel="bookmark">Drupal Training in delhi</a></h3><p>PHP, or PHP: Hypertext Preprocessor, is a widely used, general-purpose scripting language that was originally designed for web development, to produce dynamic web pages. It ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/02/how-to-redirect-browser-to-https-ssl-in-php/" rel="bookmark">How to redirect browser to https (ssl) in php</a></h3><p>Most of the e-commerce website uses payment gateway for online payment. And, those sites uses SSL (secure socket layer) connection to transfer data to and ...</p></div></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.bageshsingh.com/bagesh-blog/2010/03/web-services-and-php-%e2%80%93-soap-vs-xml-rpc-vs-rest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

