<?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>Mon, 08 Sep 2008 05:17:49 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Martynas Jusevicius' Blog: Calculating great-circle distance in MySQL and Propel]]></title>
      <guid>http://www.phpdeveloper.org/news/10093</guid>
      <link>http://www.phpdeveloper.org/news/10093</link>
      <description><![CDATA[<p>
In a <a href="http://www.xml.lt/Blog/2008/05/01/Calculating+great-circle+distance+in+MySQL+and+Propel">new post</a> today, <i>Martynas Jusevicius</i> shows how to combine a little SQL magic with the <a href=http://propel.phpdb.org/">Propel</a> framework to fins the distance between two places:
</p>
<blockquote>
Eventually the simple distance formula that I have blogged about turned out to be too inaccurate, even for locations within city bounds. I needed to use a formula to calculate great-circle distance which takes into account that the Earth is a sphere.
</blockquote>
<p>
He includes the SQL to pull the data in the right format and the PHP code (using Propel) to reproduce it without having to write it by hand (complete with the bind variables to help with security and consistency).
</p>]]></description>
      <pubDate>Thu, 01 May 2008 16:08:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Andi Gutmans' Blog:  PHP is a great language!]]></title>
      <guid>http://www.phpdeveloper.org/news/4609</guid>
      <link>http://www.phpdeveloper.org/news/4609</link>
      <description><![CDATA[On his blog today, <i>Andi Gutmans</i> has <a href="http://andigutmans.blogspot.com/2006/01/php-is-great-language.html">posted his feelings</a> on the growing trend of PHP developers turnng to the C level of things to add new functionality to the PHP development.
<p>
<quote>
<i>
One thing I have noticed, is that quite often, PHP developers who are seeking for new PHP features are prematurely trying to implement them in C. Although, there are definitely cases where you want to write your code in C, I think in some cases PHP is too quickly dismissed. 
<p>
Developing features in PHP not only takes less time, but is also less prone to bugs, easier to maintain, and more stable and secure. Also, in the majority of cases, whether such a feature were implemented in C or PHP, would not make a significant different to overall application performance.
</i>
</quote>
<p>
He <a href="http://andigutmans.blogspot.com/2006/01/php-is-great-language.html">gives the example</a> of the ZSearch functionality that they mentioned in the <a href="http://www.phparch.com/webcasts/recordings/dec0205_zend.php">php|architect webcast</a> for the Zend framework - entirely implemented in PHP, not C. He also mentions a point that web developers would do good to take to heart - the bottlenecks usually aren't in the code - it's dealing with external resources that's the problem...]]></description>
      <pubDate>Thu, 05 Jan 2006 06:37:38 -0600</pubDate>
    </item>
  </channel>
</rss>
