<?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>Fri, 04 Jul 2008 17:10:21 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Mike Willbanks' Blog: PHP Performance Series: Maximizing Your MySQL Database]]></title>
      <guid>http://www.phpdeveloper.org/news/10443</guid>
      <link>http://www.phpdeveloper.org/news/10443</link>
      <description><![CDATA[<p>
<i>Mike Willbanks</i> has posted <a href="http://blog.digitalstruct.com/2008/06/18/php-performance-series-maximizing-your-mysql-database/">another part</a> in his "PHP performance" series today. In his <a href="http://www.phpdeveloper.org/news/9711">previous article</a>, he talked about caching techniques including things like opcode caching and database memory tables. This time he talks about getting the most out of your MySQL database.
</p>
<blockquote>
Application level SQL performance is much different than the performance of the SQL query itself but rather how it has been designed to work in the application. Many of the items I will be addressing in this area is designing your application to make less queries thus improving scalability and likely performance. However, performance does not always equal scalability as the same with scalability does not always equal performance.
</blockquote>
<p>
He looks at a few different topics like lazy connections, iterating queries, need-based selects, normalization and a few simple things that you can apply to every SQL your application uses to optimize it as much as possible.
</p>]]></description>
      <pubDate>Thu, 19 Jun 2008 12:01:24 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Debuggable Blog: How to Group By in CakePHP's new release Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/10427</guid>
      <link>http://www.phpdeveloper.org/news/10427</link>
      <description><![CDATA[<p>
In <a href="http://www.debuggable.com/posts/how-to-group-by-in-cakephp's-new-release-part-2:4850d2c9-edbc-4f0e-9e0e-07d64834cda3">this new post</a> to the Debuggable blog, <i>Tim Koschutki</i> points out the method for using grouping in your CakePHP application's queries (specifically in the new Release 2).
</p>
<blockquote>
Having promised it in <a href="http://debuggable.com/posts/how-to-do-group-by-conditions-in-model-find()-calls:483fdc1c-8454-4593-a55e-37244834cda3">the first post on how to do Group By in CakePHP</a> I worked on an array() version for the group statement in Model::find() calls. So I implemented it. 
</blockquote>
<p>
His <a href="http://www.debuggable.com/posts/how-to-group-by-in-cakephp's-new-release-part-2:4850d2c9-edbc-4f0e-9e0e-07d64834cda3">code</a> shows the calls to find() the grouped information and accompanying unit test assertEquals calls to check that the results are correct. His examples show a few different ways to accomplish the same thing.
</p>]]></description>
      <pubDate>Tue, 17 Jun 2008 10:21:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com.au: Executing queries with phpMyAdmin]]></title>
      <guid>http://www.phpdeveloper.org/news/10099</guid>
      <link>http://www.phpdeveloper.org/news/10099</link>
      <description><![CDATA[<p>
PHPBuilder.com.au continues their look at using phpMyAdmin in <a href="http://www.builderau.com.au/program/mysql/soa/Executing-queries-with-phpMyAdmin/0,339028784,339288613,00.htm?feed=rss">this new part</a> of the series today. This new article focuses on using the interface to make queries against the data in your tables.
</p>
<blockquote>
The <a href="http://www.builderau.com.au/program/mysql/soa/Creating-and-managing-a-Mysql-database-with-phpMyAdmin/0,339028784,339288254,00.htm">previous article</a> gave you an overview of the phpMyAdmin interface and functionality. It's now time to dive in further and learn how to construct and execute queries.
</blockquote>
<p>
They show (complete with screenshots) how to use the GUI to build the different parts of your query - a simple SELECT statement with a join pulling together the customer information and their addresses.
</p>]]></description>
      <pubDate>Fri, 02 May 2008 11:18:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: Custom CakePHP 1.2 Pagination Queries]]></title>
      <guid>http://www.phpdeveloper.org/news/9742</guid>
      <link>http://www.phpdeveloper.org/news/9742</link>
      <description><![CDATA[<p>
<i>Chris Hartjes</i> has <a href="http://www.littlehart.net/atthekeyboard/2008/03/04/custom-cakephp-12-pagination-queries/">posted some custom queries</a> that showcase the CakePHP framework's paginaton capabilities:
</p>
<blockquote>
Okay, so it turns out that the paginate() method that is used to generate the data that you (oddly enough) paginate through takes the same arguments as Model::findAll(). So, if you want to use your own query, you simply create a 'paginate' method for your model.
</blockquote>
<p>
His <a href="http://www.littlehart.net/atthekeyboard/2008/03/04/custom-cakephp-12-pagination-queries/">queries</a> show the two parts of the equation - fetching the paginated results themselves and grabbing what the current page number is (like "page 7 of 23").
</p>]]></description>
      <pubDate>Wed, 05 Mar 2008 20:54:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Hasin Hayder's Blog: Unexpected return value from Facebook FQL.query via PHP REST Lib]]></title>
      <guid>http://www.phpdeveloper.org/news/9653</guid>
      <link>http://www.phpdeveloper.org/news/9653</link>
      <description><![CDATA[<p>
<i>Hasin Hayder</i> had been <a href="http://hasin.wordpress.com/2008/02/16/unexpected-return-value-from-facebook-fqlquery-via-php-rest-lib/">working with the Facebook API</a> and stumbled across a bug in an application they had created for the social networking site:
</p>
<blockquote>
The method which we used to count number of friends of a specific user who has added that application was returning 1 when there is no friend actually installed it.
</blockquote>
<p>
He gives the SQL query and the PHP code he was originally using to find out the number of users for the application. The problem came from the fact that the returning value wasn't an array - it was a string. The corrected code (that checks for array-ness) is also included.
</p>]]></description>
      <pubDate>Mon, 18 Feb 2008 12:06:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Maarten Balliauw's Blog: LINQ for PHP (Language Integrated Query for PHP)]]></title>
      <guid>http://www.phpdeveloper.org/news/9484</guid>
      <link>http://www.phpdeveloper.org/news/9484</link>
      <description><![CDATA[<p>
<i>Maarten Balliauw</i> has <a href="http://blog.maartenballiauw.be/post/2008/01/LINQ-for-PHP-Language-Integrated-Query-for-PHP.aspx">posted about</a> an interesting new development he's made and is sharing with the PHP community - <a href="http://www.codeplex.com/PHPLinq">PHPLinq</a> (Language Integrated Query).
</p>
<blockquote>
Perhaps you have already heard of C# 3.5's "LINQ" component. LINQ, or Language Integrated Query, is a component inside the .NET framework which enables you to perform queries on a variety of data sources like arrays, XML, SQL server, ... These queries are defined using a syntax which is very similar to SQL. [...] I thought of creating a similar concept for PHP. So here's the result of a few days coding.
</blockquote>
<p>
The library is <a href="http://www.codeplex.com/PHPLinq">available for download</a> and some examples are <a href="http://blog.maartenballiauw.be/post/2008/01/LINQ-for-PHP-Language-Integrated-Query-for-PHP.aspx">included</a> to show it in action (both in a simple example and in a more complex search on a series of objects).
</p>]]></description>
      <pubDate>Thu, 24 Jan 2008 08:45:00 -0600</pubDate>
    </item>
  </channel>
</rss>
