<?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>Sentido Web &#187; ip</title>
	<atom:link href="http://sentidoweb.com/tag/ip/feed" rel="self" type="application/rss+xml" />
	<link>http://sentidoweb.com</link>
	<description>Desarrollo web, HTML, CSS, Javascript, PHP, MySQL</description>
	<lastBuildDate>Tue, 10 Apr 2012 01:02:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Geolocalización por IP mediante Javascript y JSON</title>
		<link>http://sentidoweb.com/2009/04/13/geolocalizacion-por-ip-mediante-javascript-y-json.php</link>
		<comments>http://sentidoweb.com/2009/04/13/geolocalizacion-por-ip-mediante-javascript-y-json.php#comments</comments>
		<pubDate>Mon, 13 Apr 2009 20:15:00 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[geolocalizacion]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[latitud]]></category>
		<category><![CDATA[longitud]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/2009/04/13/geolocalizacion-por-ip-mediante-javascript-y-json.php</guid>
		<description><![CDATA[Sencillo script que nos devuelve un JSON con la geolocalización según la IP, usando los datos sacados de iplocationtools.com: function getLocation&#40;&#41;&#123; script = document.createElement&#40;'script'&#41; script.src = 'http://www.nitinh.com/ip_query.php?callback=initialize' document.body.appendChild&#40;script&#41; &#125; function initialize&#40;obj&#41;&#123; document.getElementById&#40;'spanLocation'&#41;.innerHTML = obj&#91;'City'&#93; + ', ' + obj&#91;'RegionName'&#93; + ', ' + obj&#91;'CountryName'&#93;; &#125; IP Address Geolocation Javascript API : JSON Vía / korayem]]></description>
			<content:encoded><![CDATA[<p>Sencillo script que nos devuelve un JSON con la geolocalización según la IP, usando los datos sacados de <a href="http://www.iplocationtools.com/sql_database.php">iplocationtools.com</a>:</p>
<pre><code><pre class="javascript"><span style="color: #003366; font-weight: bold;">function</span> getLocation<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
script = document.<span style="color: #006600;">createElement</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'script'</span><span style="color: #66cc66;">&#41;</span>
script.<span style="color: #006600;">src</span> = <span style="color: #3366CC;">'http://www.nitinh.com/ip_query.php?callback=initialize'</span>
document.<span style="color: #006600;">body</span>.<span style="color: #006600;">appendChild</span><span style="color: #66cc66;">&#40;</span>script<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> initialize<span style="color: #66cc66;">&#40;</span>obj<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'spanLocation'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">innerHTML</span> = obj<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">'City'</span><span style="color: #66cc66;">&#93;</span> + <span style="color: #3366CC;">', '</span> + obj<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">'RegionName'</span><span style="color: #66cc66;">&#93;</span> + <span style="color: #3366CC;">', '</span> + obj<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">'CountryName'</span><span style="color: #66cc66;">&#93;</span>;
<span style="color: #66cc66;">&#125;</span></pre></code></pre>
<p><a href="http://www.nitinh.com/2009/04/ip-address-geolocation-javascript-api-json/">IP Address Geolocation Javascript API : JSON</a></p>
<p>Vía / <a href="http://youare.com/korayem/2009/04/11/823236">korayem</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2009/04/13/geolocalizacion-por-ip-mediante-javascript-y-json.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convertir IP en su país con PHP</title>
		<link>http://sentidoweb.com/2009/02/06/convertir-ip-en-su-pais-con-php.php</link>
		<comments>http://sentidoweb.com/2009/02/06/convertir-ip-en-su-pais-con-php.php#comments</comments>
		<pubDate>Fri, 06 Feb 2009 23:30:00 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[paises]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/2009/02/06/convertir-ip-en-su-pais-con-php.php</guid>
		<description><![CDATA[Desde Devshed nos ofrecen un completo tutorial para realizar una aplicación que convierte una dirección IP en su correspondiente país. Para ello, lo más importante es la base de datos de direcciones IP: http://software77.net/cgi-bin/ip-country/geo-ip.pl, sin la cual no se podría hacer la aplicación. Después nos indica cómo pasar la BD de las IPs a una [...]]]></description>
			<content:encoded><![CDATA[Desde Devshed nos ofrecen un completo tutorial para realizar una aplicación que convierte una dirección IP en su correspondiente país. Para ello, lo más importante es la base de datos de direcciones IP: <a href="http://software77.net/cgi-bin/ip-country/geo-ip.pl">http://software77.net/cgi-bin/ip-country/geo-ip.pl</a>, sin la cual no se podría hacer la aplicación.
Después nos indica cómo pasar la BD de las IPs a una tabla de MySQL mediante un script, y ya con esta tabla podremos trabajar con la relación IP-país.
<a href="http://www.devshed.com/c/a/PHP/Building-an-IP-to-Country-Mapping-Application-with-PHP/">Building an IP-to-Country Mapping Application with PHP</a>
]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2009/02/06/convertir-ip-en-su-pais-con-php.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

