<?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, 09 Jul 2008 07:17:20 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPImpact Blog: Zend_Form Performance Issues]]></title>
      <guid>http://www.phpdeveloper.org/news/10554</guid>
      <link>http://www.phpdeveloper.org/news/10554</link>
      <description><![CDATA[<p>
On the PHP::Impact blog, there's a <a href="http://phpimpact.wordpress.com/2008/07/06/zend_form-performance-issues/">new post</a> mentioning some of the problems that he (<i>Federico</i>) has run into when his Zend_Form forms got larger and larger - performance.
</p>
<blockquote>
If you are using Zend_Form and your site increases in complexity and attracts more traffic, you are most likely to run into performance problems. Of course, bigger and more complex projects result in more load on your servers. [...] In this post I'll explain the problems I faced when using Zend_Form and how I managed to optimize it and improve the performance of my application.
</blockquote>
<p>
He ran a few tests against his code and found out that one of the biggest causes of overhead was the many calls to other components in the framework to handle different parts of the output. His solution was to modify the Zend_Form_Elements component to check for dependencies before the form is executed. Pre-loading like this prevents the high-overhead (and repetitive) dynamic loading later on.
</p>]]></description>
      <pubDate>Mon, 07 Jul 2008 10:21:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Symfony Blog: Internationalize your Propel Forms]]></title>
      <guid>http://www.phpdeveloper.org/news/10408</guid>
      <link>http://www.phpdeveloper.org/news/10408</link>
      <description><![CDATA[<p>
In <a href="http://www.symfony-project.org/blog/2008/06/12/internationalize-your-propel-forms">this new post</a> to the Symfony blog, <i>Nicolas Perriault</i> shows how to quickly and easily internationalize your Propel forms in your Symfony application.
</p>
<blockquote>
It has never been so easy to internationalize your Propel forms. In this post, you will learn how to leverage the new form framework bundled with symfony 1.1 to develop an interface to edit articles in several languages.
</blockquote>
<p>
He uses a <a href="http://www.symfony-project.org/book/1_1/13-I18n-and-L10n#Text%20Information%20in%20the%20Database">basic form layout</a> and shows how to build out the files (via a build-all) and what it ends up looking like. He configures the two languages - English and French - that he wants to use in the form and pushes it through the CRUD generator to make a full web interface for it.
</p>]]></description>
      <pubDate>Fri, 13 Jun 2008 08:46:56 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Vinu Thomas' Blog: Securimage Captcha for PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10231</guid>
      <link>http://www.phpdeveloper.org/news/10231</link>
      <description><![CDATA[<p>
<i>Vinu Thomas</i> has <a href="http://blogs.vinuthomas.com/2008/05/21/securimage-captcha-for-php/">posted about</a> a PHP/GD CAPTCHA solution he's come across - <a href="http://www.phpcaptcha.org/">Secureimage</a>.
</p>
<p>From the company's description:</p>
<blockquote>
Securimage is an open-source free PHP CAPTCHA script for generating complex images and CAPTCHA codes to protect forms from spam and abuse. It can be easily added into existing forms on your website to provide protection from spam bots. It can run on most any webserver as long as you have PHP installed, and GD support within PHP.
</blockquote>
<p>
Features of the tool include simple addition and validation methods, the ability to make audible CAPTCHAs and True Type font support. You can download the software from <a href="http://www.phpcaptcha.org/download/">the project's website</a>. 
</p>]]></description>
      <pubDate>Wed, 21 May 2008 09:30:01 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Simple Zend_Form File Upload Example Revisited]]></title>
      <guid>http://www.phpdeveloper.org/news/10210</guid>
      <link>http://www.phpdeveloper.org/news/10210</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has <a href="http://akrabat.com/2008/05/16/simple-zend_form-file-upload-example-revisited/">revisited</a> a Zend_Form example he had created before, updating it with a fix for a common error people were seeing when the form tries to validate.
</p>
<blockquote>
I've been thinking about the <a href="http://akrabat.com/2008/04/07/simple-zend_form-file-upload-example/">Simple Zend_Form File Upload Example</a> that I discussed last month. To recap, if you haven't read the comments, if the form fails to validate for some reason then you get a nasty error.
</blockquote>
<p>
He corrects the issue by creating an ArrayObject (thanks to the SPL) that can be used both as an array and can look like a string to htmlspecialchars and changing up the validation a little bit to work with the new object.
</p>]]></description>
      <pubDate>Mon, 19 May 2008 09:33:13 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: View Helpers in Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/10068</guid>
      <link>http://www.phpdeveloper.org/news/10068</link>
      <description><![CDATA[<p>
The Zend Developer Zone has <a href="http://devzone.zend.com/article/3412-View-Helpers-in-Zend-Framework">posted a new tutorial</a> (from <i>Matthew Weier O'Phinney</i>) about a handy feature of the Zend Framework's view layer - view helpers that can be added in and reused across an application to do some pretty cool stuff.
</p>
<blockquote>
A View Helper is simply a class that follows particular naming conventions, When attached to a view object, you can call the helper as if it were a method of the view object itself. The View object retains helper instances, which means that they retain states between calls.
</blockquote>
<p>
View helpers can be use to do things like manipulate view data for more complex operations and carrying over data between two views, limiting the number of fetches that have to be done. He shows how to create a simple helper - My_Helper_FooBar - that just appends "fooBar " to whatever's passed in. He also talks about some of the default view helpers (like form fields), partials, the doctype() helper, capturing/caching content to be used later and the use of placeholders.
</p>]]></description>
      <pubDate>Tue, 29 Apr 2008 14:38:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: PHP Form Validation System: An Object-Oriented Approach]]></title>
      <guid>http://www.phpdeveloper.org/news/10005</guid>
      <link>http://www.phpdeveloper.org/news/10005</link>
      <description><![CDATA[<p>
<i>Mike Weiner</i> has put together <a href="http://www.phpbuilder.com/columns/weiner20050831.php3">an article</a> for PHPBuilder.com that's posted today showing a bit more object-oriented solution to validating the user submitted data in your forms:
</p>
<blockquote>
Whether it is for database submission, emailing, or for some other purpose, forms represent the primary means of enabling a user to send data to an application. As a result, it is important to have control over the data collected by your forms, which will aid in the creation of streamlined, error-free applications.
</blockquote>
<p>
He lays out the validation method in a graphic going with a generic validation class that then calls the various validation methods (like phone or email) as needed. The "validation set" manages which validations are to be run on which form elements. Example code for each of the bits making up the structure and the implementation are provided.
</p>]]></description>
      <pubDate>Mon, 21 Apr 2008 08:49:24 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[WebReference.com: Working With Forms]]></title>
      <guid>http://www.phpdeveloper.org/news/9881</guid>
      <link>http://www.phpdeveloper.org/news/9881</link>
      <description><![CDATA[<p>
The WebReference.com website has an <a href="http://www.webreference.com/programming/php/working_with_forms/">introductory tutorial</a> showing the budding PHP develper how to get started with one of the keys to web application interaction - forms.
</p>
<blockquote>
Forms are how your users talk to your scripts. To get the most out of PHP, you must master forms. The first thing you need to understand is that although PHP makes it easy to access form data, you must be careful of how you work with the data.
</blockquote>
<p>
The first part of the tutorial is focused on something many applications don't worry about - the security and integrity of the data submitted to them. They talk about things like filtering and various other checks to ensure that the data you're getting is good. They also mention the method for putting submitted values into PHP arrays, checking for valid values, using multiple submit buttons and an example of some of these methods all put together - validating a credit card number.
</p>]]></description>
      <pubDate>Mon, 31 Mar 2008 10:25:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Building File Uploaders with PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9830</guid>
      <link>http://www.phpdeveloper.org/news/9830</link>
      <description><![CDATA[<p>
On DevShed today there's a <a href="http://www.devshed.com/c/a/PHP/Building-File-Uploaders-with-PHP-5/">new tutorial</a> showing how to build file upload functionality into your scripts.
</p>
<blockquote>
If you're a PHP developer who has built a certain number of web applications, then it's quite probable that you've already worked with HTTP file uploads. [...] First I'm going to teach you how to handle file uploads using a procedural approach, and then, with the topic well underway, by way of the object-oriented paradigm.
</blockquote>
<p>
The introduce the beginners out there to <a href="http://www.devshed.com/c/a/PHP/Building-File-Uploaders-with-PHP-5/1/">the $_FILES array</a> (a superglobal) that contains the details about the file(s) that have been submitted. Next comes the construction of a <a href="http://www.devshed.com/c/a/PHP/Building-File-Uploaders-with-PHP-5/2/">simple form</a> and how to handle the submission <a href="http://www.devshed.com/c/a/PHP/Building-File-Uploaders-with-PHP-5/3/">on the PHP side</a>.
</p>]]></description>
      <pubDate>Thu, 20 Mar 2008 11:18:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tiffany Brown's Blog: Turn text files into pull down menus]]></title>
      <guid>http://www.phpdeveloper.org/news/9710</guid>
      <link>http://www.phpdeveloper.org/news/9710</link>
      <description><![CDATA[<p>
<i>Tiffany Brown</i> shares <a href="http://tiffanybbrown.com/2008/02/26/turn-text-files-into-pull-down-menus/">a quick function</a> she whipped up to create dropdown menus from the contents of a newline separated text file (or files).
</p>
<blockquote>
I developed this PHP function for a project I'm working on. I'm posting it here in case I need it again, or in case you find it handy.
</blockquote>
<p>
The <a href="http://tiffanybbrown.com/2008/02/26/turn-text-files-into-pull-down-menus/">function</a> turns each line into an option tag making defining custom menus based on the contents of dynamically-given text files easy.
</p>
<p>
This could also be easily adapted to create navigations menus at the top of your pages with a few modifications to the HTML tags being used and some CSS to change the look of the list.
</p>]]></description>
      <pubDate>Wed, 27 Feb 2008 09:35:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevX.com: Four Ways to Transfer Data Between Flash and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9572</guid>
      <link>http://www.phpdeveloper.org/news/9572</link>
      <description><![CDATA[<p>
The DevX.com site has <a href="http://www.devx.com/webdev/Article/36748">posted some code</a> that gives you methods for passing information back and forth between PHP and a Flash application.
</p>
<blockquote>
When you need to develop a web form with a special design and great effects, you will probably elect to use Flash. But building and programming Flash forms is considerably different from building standard HTML-based forms. [...] To do that though, you need to know how to access data in the Flash form and (sometimes) how to update the Flash form from PHP as well.
</blockquote>
<p>
They help you build a sample Flash form as a base to work with in the transfer methods including the ActionScript to get the data out of each field. The tutorial shows the two way communication that's possible - pushing the Flash values out to the PHP script via a getURL() call and pulling the results back in with a call to loadVars() from the PHP script's output.
</p>]]></description>
      <pubDate>Tue, 05 Feb 2008 12:58:00 -0600</pubDate>
    </item>
  </channel>
</rss>
