<?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>Tue, 07 Oct 2008 15:25:34 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: Dynamic Models in CakePHP 1.2]]></title>
      <guid>http://www.phpdeveloper.org/news/10772</guid>
      <link>http://www.phpdeveloper.org/news/10772</link>
      <description><![CDATA[<p>
In <a href="http://www.littlehart.net/atthekeyboard/2008/08/05/dynamic-models-in-cakephp-12/">this new post</a> to his blog <i>Chris Hartjes</i> mentions a "nifty little feature" that the latest version of the <a href="http://www.cakephp.org">CakePHP framework</a> has - dynamic models.
</p>
<blockquote>
By default now, Cake will automatically use the AppModel class and create a unique alias to a database table if it does not find the file. This means that if you have a table that follows the Cake conventions, needs no validation, and has no associations to other tables, you don't even have to create the model file any more. Woah, talk about a serious time saver in some cases. 
</blockquote>
<p>
He also mentions a gotcha to keep an eye out for - misspelling the model name when you use it. It'll definitely break things. You can find out more about models in CakePHP from <a href="http://book.cakephp.org/view/66/models">this section</a> in their manual, The Cookbook.
</p>]]></description>
      <pubDate>Wed, 06 Aug 2008 09:34:33 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: Creating a Dynamic Poll with jQuery and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10686</guid>
      <link>http://www.phpdeveloper.org/news/10686</link>
      <description><![CDATA[<p>
The NETTUTS.com website has a <a href="http://nettuts.com/javascript-ajax/creating-a-dynamic-poll-with-jquery-and-php/">new tutorial</a> posted that combines PHP and AJAX (using the the <a href="http://jquery.com">jQuery</a> library specifically) to create a simple dynamic poll.
</p>
<blockquote>
When you combine some neat functionality courtesy of PHP with the cleverness of jQuery you can produce some pretty cool results. In this tutorial we'll create a poll using PHP and XHTML, then make use of some jQuery Ajax effects to eliminate the need for a page refresh, and to give it a nice little bit of animation.
</blockquote>
<p>
The PHP handles defining the question, answers and the functionality to load, submit and return the current results (number of votes) back to the javascript. The communication between the PHP and javascript is a JSON message made simple thanks to PHP's <a href="http://php.net/json_encode">json_encode</a> function.
</p>
<p>
You can <a href="http://nettuts.s3.amazonaws.com/026_Poll/demo.zip">download the source</a> or check out a <a href="http://nettuts.com/demos/test_poll/">live demo</a> to see how it all fits together.
</p>]]></description>
      <pubDate>Fri, 25 Jul 2008 10:22:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Mischook's Blog: Why build all your pages in PHP?]]></title>
      <guid>http://www.phpdeveloper.org/news/10196</guid>
      <link>http://www.phpdeveloper.org/news/10196</link>
      <description><![CDATA[<p>
On his blog today, <i>Stefan Mischook</i> shares <a href="http://www.killerphp.com/articles/why-build-all-your-pages-in-php/">his reasoning</a> for making all of your pages PHP pages, regardless of static content or dynamic.
</p>
<blockquote>
By making all your web pages PHP pages from the start, you are basically leaving open the possibility of using PHP in your web pages at any time.
</blockquote>
<p>
By his reasoning, it provides an "out" for you later on should you decide that a page needs to have some dynamic content thrown in there somewhere (without having to change the filename - bad for SEO, supposedly).
</p>]]></description>
      <pubDate>Fri, 16 May 2008 07:54:06 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevX.com: Add the Graphics Power of SVG to PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9703</guid>
      <link>http://www.phpdeveloper.org/news/9703</link>
      <description><![CDATA[<p>
In <a href="http://www.devx.com/webdev/Article/37004">this DevX tutorial</a>, <i>Octavia Anghel</i> shows how use PHP to create images based on the SVG libraries available to any browser.
</p>
<blockquote>
Scalable Vector Graphics (SVG) is an XML specification for producing vector-based graphic content that you can create, modify, and manipulate dynamically from programming languages. Here, you'll explore the most important techniques and libraries for integrating SVG with PHP to create diverse graphic content'"from simple shapes to complex graphs.
</blockquote>
<p>
They show a few different ways to get the job done including a straight 'echo' call with the output, sending a converted SVG document over with a PHP header or including another (or multiple) SVG documents into another and outputting them. They also talk about tools like the phpHtmlLib library, the PEAR::XML_SVG package and the PEAR::Image_Canvas package.
</p>]]></description>
      <pubDate>Tue, 26 Feb 2008 10:44:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Moon's Blog: Apache Worker and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9641</guid>
      <link>http://www.phpdeveloper.org/news/9641</link>
      <description><![CDATA[<p>
In a <a href="http://doughboy.wordpress.com/2008/02/13/apache-worker-and-php/">recent post</a> to his blog, <i>Brian Moon</i> talks about the experience he's had with using PHP on Apache 2 with a <a href="http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2">threaded MPM</a> at Dealnews.com.
</p>
<blockquote>
Well, first, what is an MPM? It stands for Multi-Processing Module. [...] The most commonly used threaded MPM is the Worker MPM. In this MPM, you have several processes that run multiple threads within it. This is the one I will be talking about.
</blockquote>
<p>
He <a href="http://doughboy.wordpress.com/2008/02/13/apache-worker-and-php/">goes on</a> to describe the "huge memory savings" that using the module got them - using the worker process to increase the child capacity of the Apache instance. He recommends keeping it simple when compiling a server to work with the worker functionality and mentions  how it can also help with serving static pages right along side the dynamic ones (without a second server!).
</p>
<p>
Check out <a href="http://doughboy.wordpress.com/2008/02/13/apache-worker-and-php/">the post</a> for a few more tips.
</p>]]></description>
      <pubDate>Fri, 15 Feb 2008 08:43:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Turland's Blog: The Yin and Yang of Typing]]></title>
      <guid>http://www.phpdeveloper.org/news/9546</guid>
      <link>http://www.phpdeveloper.org/news/9546</link>
      <description><![CDATA[<p>
A little while back <i>Matthew Turland</i> <a href="http://ishouldbecoding.com/2008/01/19/the-yin-and-yang-of-typing/">posted about</a> something that some developers moving over to PHP from more strict languages have an issue with - variable typing - and how its evolved in languages over time.
</p>
<blockquote>
Without a little background in programming languages or computer science in general, it's entirely possible that <a href="http://en.wikipedia.org/wiki/Type_system">typing systems</a> are not something that have crossed your mind. I thought I'd take a blog entry to share some of my thoughts on how it's affecting the creation and evolution of languages.
</blockquote>
<p>
He walks through history a bit, mentioning C, Java, Python and PHP and how they differ in their default type handling. He especially focuses on the "blurred line" between strong and weak typing and how some if offers special features to the language that uses the method.
</p>]]></description>
      <pubDate>Fri, 01 Feb 2008 11:58:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: The state of functional programming in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9253</guid>
      <link>http://www.phpdeveloper.org/news/9253</link>
      <description><![CDATA[<p>
On the SitePoint PHP Blog today, <i>Troels Knak-Nielsen</i> has <a href="http://www.sitepoint.com/blogs/2007/12/15/the-state-of-functional-programming-in-php/">written up a post</a> concerning the current state of <a href="http://lambda-the-ultimate.org/node/2539">functional programming</a> in PHP.
</p>
<blockquote>
With the rise of Javascript, and languages like Python and Ruby, <a href="http://lambda-the-ultimate.org/node/2539">functional programming</a> is becoming more mainstream. Even Java seems to be <a href="http://rickyclarkson.blogspot.com/2007/11/java-7-example-writing-your-own-foreach.html">getting closures</a> in the next version, so does this leave PHP lacking behind or is there an unrealized potential hidden within?
</blockquote>
<p>
He looks at a few different aspects of functional programming and sees how well PHP fits into them (like dynamic dispatch, binding a variable to a function and an implementation of <a href="http://en.wikipedia.org/wiki/Currying">currying</a> for a function). This last option is the only "true" functional feature that PHP can realistically handle. 
</p>]]></description>
      <pubDate>Mon, 17 Dec 2007 10:28:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Arnold Daniels' Blog: How I PHP: The Output Handler - Continued]]></title>
      <guid>http://www.phpdeveloper.org/news/9193</guid>
      <link>http://www.phpdeveloper.org/news/9193</link>
      <description><![CDATA[<p>
Continuing on from his <a href="http://www.phpdeveloper.org/news/9062">previous post</a> on output handling, <i>Arnold Daniels</i> shows how to build on the previous setup and add the ability to include dynamic data into the template.
</p>
<blockquote>
For instance, it would be nice if the data in the left column, 'Beauty Tips', could be different for each page. There are several ways to solve this, but for know I will choose the simplest.
</blockquote>
<p>He takes a few steps to make adding the content simple:</p>
<ul>
<li>Adding markers for the title and left menu to the template
<li>Change the OutputHandler class to make it less static
<li>use setData() to title the page
<li>user setData() to add left column content
<li>Use mark() and endmark() to section off a part of the template.
</ul>
<p>
He's <a href="http://blog.adaniels.nl/wp-content/code/output_handler_2/obdemo/">provided a demo</a> and made the <a href="http://blog.adaniels.nl/downloads/obdemo2.zip">source code available for download</a>.
</p>]]></description>
      <pubDate>Fri, 07 Dec 2007 09:32:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Tilllate Blog: Caching of Dynamic Data Sets]]></title>
      <guid>http://www.phpdeveloper.org/news/9178</guid>
      <link>http://www.phpdeveloper.org/news/9178</link>
      <description><![CDATA[<p>
On the Tilllate Blog, there's a <a href="http://techblog.tilllate.com/2007/11/30/caching-of-dynamic-data-sets/">new post</a> discussing the use of caching in applications, specifically for dynamic data.
</p>
<blockquote>
Consider you have a set of data that is changing dynamically for each page request and you need to cache that data the fastest way possible. You can't cache dynamic and unpredictable data as a whole, can you? Hence, we would put each data entry into cache separately to be able to fetch it separately and dynamically. But this means bombing your cache infrastructure with with requests.
</blockquote>
<p>
They break it up into a few different topics - caching text elements on the page, two-tiered caching (grouping cached items), incremental caching and cache versioning. They don't share an example of their code unfortunately, but they do mention something about a possible contribution to the <a href="http://framework.zend.com/manual/en/zend.cache.html">Zend_Cache</a> component of the Zend Framework.
</p>]]></description>
      <pubDate>Wed, 05 Dec 2007 10:29:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: PHP on .NET Dynamic Language Runtime]]></title>
      <guid>http://www.phpdeveloper.org/news/8891</guid>
      <link>http://www.phpdeveloper.org/news/8891</link>
      <description><![CDATA[<p>
A new post to the php.evangelism <a href="http://news.php.net/php.evangelism/">mailing list</a> has started up a great discussion on something that a lot of users seem to be in favor of - trying to get PHP accepted by Microsoft to be included in its Dynamic Language Runtime environment.
</p>
<p>
From the <a href="http://news.php.net/php.evangelism/392">inital post</a>:
</p>
<blockquote>
I am wondering why there isn't any effort in the PHP community to get PHP into the DLR. If nothing, DLR is yet another platform, and for a php programmer it gives one more playground to showcase his skillset. Anyway, my question is whether there would be any community effort to get MS adopt PHP into CLR too. I am sure there is a genuine customer requirement, and enterprises have made quite a bit of investment in PHP and they would all love to be able to take it to the .NET platform.
</blockquote>
<p>
Responses so far include the <a href="http://news.php.net/php.evangelism/452">pointing out of problems</a>, possibilities like <a href="http://news.php.net/php.evangelism/449">a Zend collaboration</a> and lots of talk on what such a project would entail.
</p>]]></description>
      <pubDate>Tue, 23 Oct 2007 17:03:00 -0500</pubDate>
    </item>
  </channel>
</rss>
