<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://united-coders.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>united-coders.com - php</title>
 <link>http://united-coders.com/taxonomy/term/9/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>The art of escaping</title>
 <link>http://united-coders.com/matthias-reuter/the-art-of-escaping</link>
 <description>&lt;p&gt;Escaping is the art of transforming a text into a transport format from which it can be extracted again without any modification.&lt;/p&gt;
&lt;p&gt;That&#039;s something every developer does - to a certain level. For example take the sentence&lt;/p&gt;
&lt;blockquote&gt;&lt;div class=&quot;quote_start&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;quote_end&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Matthias says: &amp;quot;I love Javascript&amp;quot;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Now put this sentence in a Java source code:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;java geshifilter-java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;String&lt;/span&gt; s &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;Matthias says: &amp;quot;&lt;/span&gt;I love Javascript&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;.&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;If you don&#039;t complain about this, your compiler will. In Java (any many other programming languages) the quotation mark &amp;quot; has a special meaning, it defines a string. So if you have a string containing the quotation mark, you need to escape it:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;java geshifilter-java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;String&lt;/span&gt; s &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;Matthias says: &lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\&amp;quot;&lt;/span&gt;I love Javascript&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\&amp;quot;&lt;/span&gt;.&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;If you print out s, the original text is shown:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;java geshifilter-java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;s&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Matthias says: &amp;quot;I love Javascript&amp;quot;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class=&quot;read-more&quot;&gt;&lt;a href=&quot;/matthias-reuter/the-art-of-escaping&quot;&gt;&lt;strong&gt;Read more&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;!--
&lt;rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:trackback=&quot;http://madskills.com/public/xml/rss/module/trackback/&quot;&gt;
&lt;rdf:Description rdf:about=&quot;http://united-coders.com/matthias-reuter/the-art-of-escaping&quot; dc:identifier=&quot;http://united-coders.com/matthias-reuter/the-art-of-escaping&quot; dc:title=&quot;The art of escaping&quot; trackback:ping=&quot;http://united-coders.com/trackback/41&quot; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
&lt;div class=&#039;sexybookmarks-default-1146&#039;&gt;&lt;/div&gt;</description>
 <comments>http://united-coders.com/matthias-reuter/the-art-of-escaping#comments</comments>
 <category domain="http://united-coders.com/category/tags/escaping">escaping</category>
 <category domain="http://united-coders.com/category/tags/html">HTML</category>
 <category domain="http://united-coders.com/category/tags/java">java</category>
 <category domain="http://united-coders.com/category/tags/json">JSON</category>
 <category domain="http://united-coders.com/category/tags/php">php</category>
 <category domain="http://united-coders.com/category/tags/sql">SQL</category>
 <category domain="http://united-coders.com/category/tags/url">URL</category>
 <pubDate>Fri, 27 Nov 2009 08:47:49 +0000</pubDate>
 <dc:creator>Matthias Reuter</dc:creator>
 <guid isPermaLink="false">41 at http://united-coders.com</guid>
</item>
<item>
 <title>Combining HTTP and JavaScript APIs with php</title>
 <link>http://united-coders.com/christian-harms/combining-http-and-javascript-apis-with-php</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;The &lt;a href=&quot;http://united-coders.com/christian-harms/free-ip-location-script&quot;&gt;implementation of the ip to geo location script&lt;/a&gt; started as a quick hack in php. Sometimes I use php scripts because everyone can include it in his own website account (but I am not an active php programmer). It&#039;s much easier to write a simple php script instead of deploying a more complex web application. The quick result was this implementation as an example. After getting the php script to work I rewrote it in python, transformed it into a google appengine application and deployed it. Both worked fine and now there are two examples for the API integration available.&lt;span class=&quot;read-more&quot;&gt;&lt;a href=&quot;/christian-harms/combining-http-and-javascript-apis-with-php&quot;&gt;&lt;strong&gt;Read more&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;visibility:hidden&quot;&gt;technorati code jxzmcfgp74 &lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;the &lt;a href=&quot;http://united-coders.com/christian-harms/ip2-geolocation-mashup-tutorial&quot;&gt;tutorial how to use ip to geolocation provider api&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;the &lt;a href=&quot;http://united-coders.com/christian-harms/free-ip-location-script&quot;&gt;free usage ip to geolocation aggregator script&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;the php stand alone implementation&lt;/li&gt;
&lt;li&gt;the &lt;a href=&quot;http://united-coders.com/christian-harms/combining-http-and-javascript-apis-with-python-on-google-appengine&quot;&gt;python google appengine implementation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;!--
&lt;rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:trackback=&quot;http://madskills.com/public/xml/rss/module/trackback/&quot;&gt;
&lt;rdf:Description rdf:about=&quot;http://united-coders.com/christian-harms/combining-http-and-javascript-apis-with-php&quot; dc:identifier=&quot;http://united-coders.com/christian-harms/combining-http-and-javascript-apis-with-php&quot; dc:title=&quot;Combining HTTP and JavaScript APIs with php&quot; trackback:ping=&quot;http://united-coders.com/trackback/35&quot; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
&lt;div class=&#039;sexybookmarks-default-1803&#039;&gt;&lt;/div&gt;</description>
 <comments>http://united-coders.com/christian-harms/combining-http-and-javascript-apis-with-php#comments</comments>
 <category domain="http://united-coders.com/category/tags/api">api</category>
 <category domain="http://united-coders.com/category/tags/http">http</category>
 <category domain="http://united-coders.com/category/tags/maxmind">maxmind</category>
 <category domain="http://united-coders.com/category/tags/php">php</category>
 <category domain="http://united-coders.com/category/tags/wipmania">WIPmania</category>
 <enclosure url="http://united-coders.com/sites/default/files/geo_php_0.txt" length="3136" type="text/plain" />
 <pubDate>Mon, 27 Jul 2009 15:04:55 +0000</pubDate>
 <dc:creator>Christian Harms</dc:creator>
 <guid isPermaLink="false">35 at http://united-coders.com</guid>
</item>
<item>
 <title>Tutorial for a IP to geolocation aggregator script</title>
 <link>http://united-coders.com/christian-harms/tutorial-for-a-ip-to-geolocation-aggregator-script</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;If you provide a restaurant guide it would be great to show  the next restaurant based on webpage visitors position or the local beer garden specials if its sunny weather? Or offer geo targeted ads on your page? And this could be offered without registration or connection to a social network? I will describe the api/implementation details and offer directly our free &lt;a href=&quot;http://united-coders.com/christian-harms/free-ip-location-script&quot;&gt;&quot;ip to geolocation aggregator&quot;&lt;/a&gt;-script.&lt;/p&gt;
&lt;p&gt;The first step is determining geo location based on Internet IP address of the visitor. I have found five free service providers which offer data based on the client-IP the geo position and city/country data. Classic &quot;ip to geolocation data offers&quot; are commercial. You have to buy and download a sql dump or csv file with ip ranges from isp with country and city data - some expanded with long/lat values. The second solution (and to save hosting space) is using a http api which offer theses data directly when being called - these looks like the preferred possibility. And the third way is to include a javascript which can integrate the geo position directly without need of a server component.&lt;span class=&quot;read-more&quot;&gt;&lt;a href=&quot;/christian-harms/tutorial-for-a-ip-to-geolocation-aggregator-script&quot;&gt;&lt;strong&gt;Read more&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;!--
&lt;rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:trackback=&quot;http://madskills.com/public/xml/rss/module/trackback/&quot;&gt;
&lt;rdf:Description rdf:about=&quot;http://united-coders.com/christian-harms/tutorial-for-a-ip-to-geolocation-aggregator-script&quot; dc:identifier=&quot;http://united-coders.com/christian-harms/tutorial-for-a-ip-to-geolocation-aggregator-script&quot; dc:title=&quot;Tutorial for a IP to geolocation aggregator script&quot; trackback:ping=&quot;http://united-coders.com/trackback/24&quot; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
&lt;div class=&#039;sexybookmarks-default-9922&#039;&gt;&lt;/div&gt;</description>
 <comments>http://united-coders.com/christian-harms/tutorial-for-a-ip-to-geolocation-aggregator-script#comments</comments>
 <category domain="http://united-coders.com/category/tags/christian-harms">christian harms</category>
 <category domain="http://united-coders.com/category/tags/free-ip2location">free ip2location</category>
 <category domain="http://united-coders.com/category/tags/geo-location">geo location</category>
 <category domain="http://united-coders.com/category/tags/javascript">javascript</category>
 <category domain="http://united-coders.com/category/tags/php">php</category>
 <category domain="http://united-coders.com/category/tags/tutorial">tutorial</category>
 <pubDate>Wed, 01 Jul 2009 22:33:31 +0000</pubDate>
 <dc:creator>Christian Harms</dc:creator>
 <guid isPermaLink="false">24 at http://united-coders.com</guid>
</item>
</channel>
</rss>


