<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 19 Jun 2013 04:28:19 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Vanessa Vasile's Blog: Using PHP to Perform DNS Lookups]]></title>
      <guid>http://www.phpdeveloper.org/news/14738</guid>
      <link>http://www.phpdeveloper.org/news/14738</link>
      <description><![CDATA[<p>
In a handy little post to her blog today <i>Vanessa Vasile</i> <a href="http://www.v-nessa.net/2010/06/30/using-php-to-perform-dns-lookups">has an example</a> of how to use built-in PHP functions to perform DNS lookups in your scripts.
</p>
<blockquote>
PHP has a couple DNS functions you can use to perform record lookups. Most of us are familiar with the two basic ones - <a href="http://us4.php.net/gethostbyname">gethostbyname()</a> and <a href="http://us4.php.net/gethostbyname">gethostbyaddr()</a>, both of which perform a single function '" returning a hostname or IP address.
</blockquote>
<p>
She also mentions the <a href="http://us2.php.net/manual/en/function.gethostbynamel.php">gethostbynamel</a> and <a href="http://us2.php.net/manual/en/function.dns-get-record.php">dns_get_record</a> functions that can give you even more insight into the current DNS of a given domain (even returning only record-type specific information).
</p>]]></description>
      <pubDate>Thu, 01 Jul 2010 11:37:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Geographical information lookup using GeoNames]]></title>
      <guid>http://www.phpdeveloper.org/news/14368</guid>
      <link>http://www.phpdeveloper.org/news/14368</link>
      <description><![CDATA[<p>
New on his blog today <i>Sameer Borate</i> has posted a new tutorial about <a href="http://www.codediesel.com/data/geographical-information-lookup-using-geonames">using the GeoNames web service</a> to look up geographical information about your visitors (and help with targeting the experience just for them).
</p>
<blockquote>
Geographical information integration is rapidly becoming an integral part of many websites. People use geographic data for a wide variety of applications. From location based content targeting, censoring information by geographic areas to analyzing website traffic by region. It is surprising how much free geographic information is available on the web. <a href="http://www.geonames.org/">GeoNames</a> is one such service.
</blockquote>
<p>
The database is released under a Creative Commons license, so it's available to all and getting the libraries installed to use it is a single "pear install" command away. He includes code showing how to make a sample search for cities, countries and "neighbors" as well as just performing a generic search off the data. He also throws in a method for accessing the information via jQuery (an ajax call)
</p>]]></description>
      <pubDate>Mon, 19 Apr 2010 08:25:01 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ken Guest's Blog: A response to "Better Postal/Zip Code Validation Method for CakePHP 1.2"]]></title>
      <guid>http://www.phpdeveloper.org/news/13692</guid>
      <link>http://www.phpdeveloper.org/news/13692</link>
      <description><![CDATA[<p>
In response to <a href="http://jamienay.com/2009/12/a-better-postal-zip-code-validation-method-for-cakephp-1-2/">a different post</a> he read on a postal/zip code validation topic, <i>Ken Guest</i> has <a href="http://blogs.linux.ie/kenguest/2009/12/15/a-response-to-better-postalzip-code-validation-method-for-cakephp-1-2/">points out other resources</a> that can be used to accomplish the same sort of thing and already exist.
</p>
<blockquote>
I drew attention to two things. The first is that there are <a href="http://pear.php.net/packages.php?catpid=50&catname=Validate">Validation packages in PEAR</a>, including  <a href="http://pear.php.net/package/Validate">the main Validate class</a> and all the Validate_xx subclasses such as <a href="http://pear.php.net/package/Validate_US">Validate_US</a>, <a href="http://pear.php.net/package/Validate_CA">Validate_CA</a> and some 22 others). The second item I drew Jamie's attention to is that his validation code counts a zip code of "00000' as valid, when <a href="http://zip4.usps.com/zip4/citytown_zip.jsp">the USPS zip code look up tool</a> correctly (and they should know!) identifies that code as invalid.
</blockquote>
<p>
He wholeheartedly opposes the "Not Invented Here" syndrome that developers (with a hefty dose of framework developers included) seem to have.
</p>]]></description>
      <pubDate>Thu, 17 Dec 2009 11:14:53 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Debuggable Blog: How To Save Half A Second On Every CakePHP Request]]></title>
      <guid>http://www.phpdeveloper.org/news/12038</guid>
      <link>http://www.phpdeveloper.org/news/12038</link>
      <description><![CDATA[<p>
CakePHP users might want to <a href="http://debuggable.com/posts/how-to-save-half-a-second-on-every-request-of-your-cakephp-app:49a69610-8648-4d65-815d-754c4834cda3">listen to this suggestion</a> from <i>Tim Koschutzki</i> on the Debuggable blog - he wants to help you save a half second on each request.
</p>
<blockquote>
There are several ways to improve the performance of your CakePHP application. [...] Any performance improvement that does not effect how data is retrieved, stored and cached is welcome. If it affects your entire site and not only parts of it, it's all the better.
</blockquote>
<p>
The performance boost comes in the form of an update to CakePHP's reverse route lookup functionality. Normally a lookup would have to be parsed and resolved back to their original location. They figured a bit faster way around it though - breaking the reverse routing feature for the sake of speed. The code for the hack is <A href="http://debuggable.com/posts/how-to-save-half-a-second-on-every-request-of-your-cakephp-app:49a69610-8648-4d65-815d-754c4834cda3">included in the post</a>.
</p>]]></description>
      <pubDate>Fri, 27 Feb 2009 12:09:51 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Havard Eide's Blog: phpm (a vim PHP function lookup tool)]]></title>
      <guid>http://www.phpdeveloper.org/news/11663</guid>
      <link>http://www.phpdeveloper.org/news/11663</link>
      <description><![CDATA[<p>
<i>Havard Eide</i> <a href="http://eide.org/2009/01/02/phpm/">shares a tool</a> he originally created to do function lookups when in vim - <a href="http://eide.org/files/phpm/phpm.zip">phpm</a>:
</p>
<blockquote>
4 years ago I wrote a small program called phpm that I used for php function lookup when coding in vim. since then I've crossed over to ZendStudio and I'm now using that for my everyday work. But: every now and then I've had requests regarding phpm and if I can't digg up the sources, and I've said: "sorry, but those are lost". Until today: I went through a old HD, digging through backups and files: and suddenly phpm resurfaced!
</blockquote>
<p>
He's <a href="http://eide.org/2009/01/02/phpm/">included the links</a> to the three things you'll need to get it working - the phpm file itself, XML required by it and an optional phpdocumentor template to create the output file. 
</p>]]></description>
      <pubDate>Fri, 02 Jan 2009 15:34:02 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Using cURL with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/7213</guid>
      <link>http://www.phpdeveloper.org/news/7213</link>
      <description><![CDATA[<p>
On PHPBuilder.com today, there's a <a href="http://www.phpbuilder.com/columns/ian_gilfillan20070202.php3">new tutorial</a> spotlighting the use of the cURL library with PHP:
</p>
<blockquote>
cURL is one of the most powerful PHP extensions. It stands for Client URL, and allows you to communicate with other servers using a wide range of protocols. Perhaps that sounds fairly uninteresting, but give it some more thought. 
</blockquote>
<p>
As food for thought, they give a few examples of the use of this handy library - a script to look up the meaning of a word, how to access password protected pages, getting the information about a file from a remote server, posting to a remote script, and FTPing a file to a remote server. This flexible library allows all of these without making things overly complex and unmanageable.
</p>
<p>
You can check out the full list of features for the extension on <a href="http://us2.php.net/curl">this page</a> of the PHP manual.
</p>]]></description>
      <pubDate>Fri, 02 Feb 2007 18:41:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Joshua Eichorn's Blog: HTML_AJAX Wordpress Plugin Tutorial]]></title>
      <guid>http://www.phpdeveloper.org/news/5695</guid>
      <link>http://www.phpdeveloper.org/news/5695</link>
      <description><![CDATA[<p>
<i>Joshua Eichorn</i> has <a href="http://blog.joshuaeichorn.com/archives/2006/06/26/html_ajax-wordpress-plugin-tutorial/">found a tutorial</a> someone else has written on <a href="http://www.troymcilvena.com/wordpress-and-html_ajax/">creating a stock lookup plugin</a> for WordPress with his <a href="http://htmlajax.org/">HTML_AJAX package</a>.
</p> 
<blockquote>
The only problem I see is the code won't work in PHP5 since introspection will return the method name as GetQuote instead of getquote.
</blockquote>
<p>
He <a href="http://blog.joshuaeichorn.com/archives/2006/06/26/html_ajax-wordpress-plugin-tutorial/">gives the code changes</a> you'll need to make to get it all working in your PHP5 installation, and includes another option as well - registering all of the functions you want to use instead of just automagically using them.
</p>]]></description>
      <pubDate>Tue, 27 Jun 2006 06:05:20 -0500</pubDate>
    </item>
  </channel>
</rss>
