<?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, 06 Oct 2008 18:38:54 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Running background processes in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10636</guid>
      <link>http://www.phpdeveloper.org/news/10636</link>
      <description><![CDATA[<p>
New on the Developer Tutorials blog today is <a href="http://www.developertutorials.com/blog/php/running-background-processes-in-php-349/">this look</a> at handling background processes from your PHP script:
</p>
<blockquote>
You've checked and double checked the integrity of user input, and you're doing some serious processing. There's only one problem: it's too slow. There's a simple solution: forking your processing script, and running the code as a background process asynchronously. It can email your user when it's done: they'll wait. In this tutorial, I'll show you how to get started with background processes in PHP.
</blockquote>
<p>
<i>Akash</i> gives examples of the three keys to background processes - starting the script via an exec, talking to the process by passing additional parameters and including code to monitor the state of the background process via something like a MySQL "sessions" table that the script writes to.
</p>]]></description>
      <pubDate>Fri, 18 Jul 2008 11:18:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Debuggable Blog: Make your life easier with these five CakePHP Quicktips]]></title>
      <guid>http://www.phpdeveloper.org/news/10301</guid>
      <link>http://www.phpdeveloper.org/news/10301</link>
      <description><![CDATA[<p>
<i>Tim Koschutzki</i> has <a href="http://www.debuggable.com/posts/make-your-life-easier-with-these-five-cakephp-quicktips:48170ee5-0cc0-4815-af60-7c264834cda3">five quick tips</a> for the CakePHP users out there to help make your lives just a bit easier:
</p>
<ul>
<li>The prd() convenience function
<li>How to debug your CakePHP emails?
<li>Use elements where possible and make them belong to the controller
<li>Combine your h1 titles with Cake's page title
<li>Avoid long parameter lists
</ul>
<p>
Each <a href="http://www.debuggable.com/posts/make-your-life-easier-with-these-five-cakephp-quicktips:48170ee5-0cc0-4815-af60-7c264834cda3">tip</a> comes complete with code and a brief explanation of its use.
</p>]]></description>
      <pubDate>Thu, 29 May 2008 15:23:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Zend_Controller_Action, Now With Parameters!]]></title>
      <guid>http://www.phpdeveloper.org/news/9328</guid>
      <link>http://www.phpdeveloper.org/news/9328</link>
      <description><![CDATA[<p>
On the Zend Developer Zone a <a href="http://devzone.zend.com/article/2855-Actions-now-with-parameters">new post</a> points out feature that the controllers of the Zend Framework has - parameters on the actions.
</p>
<blockquote>
Basically, <a href="http://framework.zend.com/manual/en/zend.controller.html">Zend_Controller_Action</a> is the parent of all of the controllers in your application. This controller is what C stands for in <a href="http://en.wikipedia.org/wiki/Model-view-controller">MVC</a>, a design pattern used lately in web application development, especially in RIA development.
</blockquote>
<p>
<a href="http://devzone.zend.com/article/2855-Actions-now-with-parameters">The post</a> includes a tutorial on using the parameters in an example of a design pattern.
</p>]]></description>
      <pubDate>Mon, 31 Dec 2007 09:15:48 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[David Coallier's Blog: Quick Tip - PHP, SimpleXML and CDATA]]></title>
      <guid>http://www.phpdeveloper.org/news/8982</guid>
      <link>http://www.phpdeveloper.org/news/8982</link>
      <description><![CDATA[<p>
<i>David Coallier</i> has <a href="http://blog.agoraproduction.com/index.php?/archives/53-Quick-Tip-PHP,-SimpleXML-and-CDATA.html">shared a quick tip</a> today about the PHP/SimpleXML/CDATA combination and the creation of auto-generated classes.
</p>
<blockquote>
I thought, hey I wonder how long it'd take in php.. so I was
working on it and I actually couldn't remember all those funny extra
parameters in simplexml_* so if you are googling and cannot find
something that says exactly what you want well here it is.
</blockquote>
<p>
His example includes two additional parameters in his simplexml_load_string call to handle the CDATA section correctly and make accessing the data inside the block just like getting at anything else in the object.
</p>
<p>
Note that <i>Rob Richards</i> has also commented on the post that this issue was corrected a while back and it shouldn't be needed anymore, but could effect older versions of the SimpleXML functionality.
</p>]]></description>
      <pubDate>Tue, 06 Nov 2007 11:16:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Turland's Blog: Pondering PHP 6]]></title>
      <guid>http://www.phpdeveloper.org/news/8570</guid>
      <link>http://www.phpdeveloper.org/news/8570</link>
      <description><![CDATA[<p>
<i>Matthew Turland</i>, like many in the PHP community these days, has been <a href="http://ishouldbecoding.com/2007/08/27/pondering-php-6/">pondering PHP6</a> and what it might mean to both the developers and to the language itself:
</p>
<blockquote>
Be that as it may, as a user with about five years under his belt as of now who has seen all qualities of PHP code ranging from pristine to pedantic, a thought or two has crossed my mind on the subject of the latest upcoming incarnation of the language.
</blockquote>
<p>
Specifically, he <a href="http://ishouldbecoding.com/2007/08/27/pondering-php-6/">talks about</a> some of the hot topics like namespaces, the mysqlnd driver, Unicode support, and named parameters. Overall, though, his comments are positive, looking toward a brighter future for PHP with this upcoming edition.
</p>]]></description>
      <pubDate>Mon, 03 Sep 2007 08:03:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Maggie Nelson's Blog: How to (and how not to) pass an array from PHP to the database]]></title>
      <guid>http://www.phpdeveloper.org/news/8250</guid>
      <link>http://www.phpdeveloper.org/news/8250</link>
      <description><![CDATA[<p>
In a <a href="http://www.objectivelyoriented.com/2007/07/how_to_and_how_not_to_pass_an_1.html">new post</a> today, <i>Maggie Nelson</i> starts with the wrong way to do something - passing an array from PHP to a database - and works backward to make it all right.
</p>
<blockquote>
It would be really useful to have an easy way to pass arrays as bound parameters to queries or procedures from PHP. This would be especially useful if you're letting Oracle handle most of your data manipulating (as you should).
</blockquote>
<p>
She includes an example of how she's like it to work. Sadly, it doesn't but there are some ways that a developer could get close. Here's her process:
</p>
<ul>
<li>No queries in loops, please!
<li>In the ideal world...
<li>Put all your DML in stored procedures.
<li>str2tbl
<li>The list_pkg package
<li>list_pkg in your procedure
<li>list_pkg in your PHP
<li>Leveraging list_pkg
</ul>
<p>
The list_pkg is based around <a href="http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:110612348061">this article</a> from AskTom.
</p>]]></description>
      <pubDate>Mon, 16 Jul 2007 11:13:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tim Koschuetzki's Blog: Composing Methods: Remove Assignments to Parameters]]></title>
      <guid>http://www.phpdeveloper.org/news/8193</guid>
      <link>http://www.phpdeveloper.org/news/8193</link>
      <description><![CDATA[<p>
In another part of his "Composing Methods" series, <i>Tim Koschuetzki</i> <a href="http://php-coding-practices.com/refactoring/composing-methods/composing-methods-remove-assignments-to-parameters/">posts about</a> removing assignments to parameters today - working with a temporary variable inside a method rather than the actual passed in value.
</p>
<blockquote>
When your code assigns to a parameter in a function/method, use a temporary variable instead. [...] It will make your code much more readable and prevents by-reference confusion and therefore big problems in the future.
</blockquote>
<p>
His example code uses the illustration of calling a price() method in a class to modify the inputVal value based on other inputted information. His suggestion is to not work with the actual inputVal value passed in (so as to avoid issues if it happens to be passed my reference later), but to work with a temporary variable - $result - inside the method.
</p>]]></description>
      <pubDate>Fri, 06 Jul 2007 10:21:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Philip Olson's Blog: 20 possible reasons why PHP function names and parameters are weird]]></title>
      <guid>http://www.phpdeveloper.org/news/7925</guid>
      <link>http://www.phpdeveloper.org/news/7925</link>
      <description><![CDATA[<p>
For your consideration today, <i>Philip Olson</i> has worked up <a href="http://blog.roshambo.org/archives/20-possible-reasons-why-PHP-function-names-and-parameters-are-weird.html">a listing</a> of twenty (humorous) possible reasons that the names of the PHP functions are weird.
</p>
<blockquote>
Here are 20 possible reasons why PHP functions lack consistent names and parameters. Learning the definition for every PHP function is truly an amazing feat and I doubt this has been attempted or accomplished by anyone. At least, by any sane human. And references are named references because they are designed to be referenced, right?
</blockquote>
<p>
Items on <a href="http://blog.roshambo.org/archives/20-possible-reasons-why-PHP-function-names-and-parameters-are-weird.html">the list</a> include:
<ul>
<li>PHP likes BC
<li>PHP says all your namespace are belong to us
<li>PHP function naming algorithm still remains a secret and cannot be cracked
<li>PHP isn't designed to win a beauty contest
</ul>
</p>]]></description>
      <pubDate>Tue, 29 May 2007 07:04:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Moon's Blog: You have to be really smart to code PHP!]]></title>
      <guid>http://www.phpdeveloper.org/news/7914</guid>
      <link>http://www.phpdeveloper.org/news/7914</link>
      <description><![CDATA[<p>
<i>Brian Moon</i> has <a href="http://doughboy.wordpress.com/2007/05/23/you-have-to-be-really-smart-to-code-php/">posted some thoughts</a> about "<a href="http://terrychay.com/blog/article/is-ruby-the-dog-and-php-the-dogfood.shtml">the post</a>" that <i>Terry Chay</i> recently wrote including comments on smart versus intelligent, object nonense, and funky function names.
</p>
<blockquote>
<p>
So, if you are not smart, then stop coding PHP.  Its a good thing that C developers are smart.  They have to remember all those functions.  Assembly language developers don't have to remember functions.  I guess they are not smart?
</p>
<p>
Ok, that last paragraph was tongue in cheek.  Knowing 3000+ functions does not make you smart.  It means you have a good memory.  I will take intelligence over smart or a good memory any day. 
</p>
</blockquote>
<p>
His comments on the "object nonsense" makes note of the difference between functions and methods and the function naming issue - well, he has "no solid defense" as they do make it difficult to learn the language and send some developers running back to the manual to make sure the parameter order is right each time.
</p>]]></description>
      <pubDate>Thu, 24 May 2007 10:27:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[LivePipe Blog: What PHP6 Actually Needs]]></title>
      <guid>http://www.phpdeveloper.org/news/7846</guid>
      <link>http://www.phpdeveloper.org/news/7846</link>
      <description><![CDATA[<p>
On the LivePipe blog, there's <a href="http://livepipe.net/blog/programming/what_php6_actually_needs">a whishlist</a> that <i>Ryan</i> has posted for some of the things he'd like to see in PHP6.
</p>
<p>His list consists of:</p>
<ul>
<li>Closures
<li>{ } is the new array()
<li>Parameter Collection in Functions
<li>Late Static Binding
<li>Backwards Compatibility
</ul>
<p>
Each is <a href="http://livepipe.net/blog/programming/what_php6_actually_needs">explained</a>, some with code to illustrate.
</p>]]></description>
      <pubDate>Tue, 15 May 2007 10:13:00 -0500</pubDate>
    </item>
  </channel>
</rss>
