<?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>Sun, 11 May 2008 19:07:58 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Michael Girouard's Blog: Rolling Your Own MVC: The View]]></title>
      <guid>http://www.phpdeveloper.org/news/10052</guid>
      <link>http://www.phpdeveloper.org/news/10052</link>
      <description><![CDATA[<p>
<i>Michael</i> is back with <a href="http://www.lovemikeg.com/blog/2008/04/28/rolling-your-own-mvc-the-view/">part three</a> of his series stepping you through the creation of your own MVC framework (<a href="http://www.lovemikeg.com/blog/2008/02/21/rolling-your-own-mvc-introduction/">Part 1</a> and <a href="http://www.phpdeveloper.org/news/9944">Part 2</a>) with a look at the part that interfaces with the user - the View.
</p>
<blockquote>
Using the view as a starting point may seem odd at first considering the view-related actions are some of the last steps in the page load scenario, but since our views don't have any external dependencies, unit tests are very easy to write and so is the accompanying code.
</blockquote>
<p>
He <a href="http://www.lovemikeg.com/blog/2008/04/28/rolling-your-own-mvc-the-view/">explains</a> how views work along with the rest of the framework and some of the basic rules surrounding how they get their data. Code comes along with the explanations for different views like XML, HTML and JSON methods of output. 
</p>]]></description>
      <pubDate>Mon, 28 Apr 2008 09:39:45 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Greg Szorc's Blog: Using DTD's and Catalogs for XHTML Validation]]></title>
      <guid>http://www.phpdeveloper.org/news/9949</guid>
      <link>http://www.phpdeveloper.org/news/9949</link>
      <description><![CDATA[<p>
<i>Greg Szorc</i> shows how, in <a href="http://blog.case.edu/gps10/2008/04/06/using_dtds_and_catalogs_for_xhtml_validation">this entry</a> on his blog, to use DTDs and catalogs to validate your XHTML pages with a little help from PHP.
</p>
<blockquote>
This [validation from an external site like the W3C validator] approach is a good start, but it is far from ideal because it is based on an honor system of sorts. You often forget to validate each change you make and there is always some corner case that you forget. So, what can be done about it? Well, if you find yourself developing in PHP, you can employ the following solution.
</blockquote>
<p>
The code <a href="http://blog.case.edu/gps10/2008/04/06/using_dtds_and_catalogs_for_xhtml_validation">he includes</a> pulls in the XHTML content from your page (or the output of the framework's view layer) and pushes it into a DOMDocument that's build with the LIBXML_DTDLOAD and LIBXML_DTDATTR options.
</p>]]></description>
      <pubDate>Thu, 10 Apr 2008 11:29:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Vinu Thomas' Blog: Replace print_r and var_dump with Krumo]]></title>
      <guid>http://www.phpdeveloper.org/news/9943</guid>
      <link>http://www.phpdeveloper.org/news/9943</link>
      <description><![CDATA[<p>
<i>Vinu Thomas</i> has <a href="http://blogs.vinuthomas.com/2008/04/07/replace-print_r-and-var_dump-with-krumo/">proposed a replacement</a> for the usual var_dump or print_r sort of debugging developers tend to do - <a href="http://krumo.sourceforge.net/">Krumo</a>.
</p>
<blockquote>
To put it simply, Krumo is a replacement for print_r() and var_dump(). By definition Krumo is a debugging tool (now for PHP5 only), which displays structured information about any PHP variable [...] it does the same job, but it presents the information beautified using CSS and DHTML.
</blockquote>
<p>
It also supports output of other data in a "pretty format" like backtraces, included files and a listing of all constants. You can check out a demo of it in action <a href="http://kaloyan.info/krumo/demo/index.php">here</a>.
</p>]]></description>
      <pubDate>Wed, 09 Apr 2008 14:44:31 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Handling HTML Strings and Files with the DOM XML Extension in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9856</guid>
      <link>http://www.phpdeveloper.org/news/9856</link>
      <description><![CDATA[<p>
On DevShed today, they <a href="http://www.devshed.com/c/a/PHP/Handling-HTML-Strings-and-Files-with-the-DOM-XML-Extension-in-PHP-5/">continue their series</a> looking at working with XML in PHP with the DOM functionality with the fifth part of their series, a look at working with HTML strings and file data.
</p>
<blockquote>
Understanding how to use the methods and properties provided by this library requires a little effort from you, despite its fairly easy learning curve. [...] The DOM XML extension has plenty of options when it comes to moving portions of an XML document (or even the entire document) from one place to another. This is certainly a process that can be performed with minor hassles by utilizing the intuitive DOM API mentioned in the beginning.
</blockquote>
<p>
They show how to <a href="http://www.devshed.com/c/a/PHP/Handling-HTML-Strings-and-Files-with-the-DOM-XML-Extension-in-PHP-5/1/">use loadHTML</a> to pull in the text from an HTML string and use <a href="http://www.devshed.com/c/a/PHP/Handling-HTML-Strings-and-Files-with-the-DOM-XML-Extension-in-PHP-5/2/">loadHTMLFile</a> to pull it in from an external HTML file. Finally, they show how to write the data and whatever changes you might have made to it, back out to a file with <a href=http://www.devshed.com/c/a/PHP/Handling-HTML-Strings-and-Files-with-the-DOM-XML-Extension-in-PHP-5/3/">saveHTMLFile</a>.
</p>]]></description>
      <pubDate>Wed, 26 Mar 2008 08:46:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[php|architect: Coding Costest for Feb. 2008 - Link Finder]]></title>
      <guid>http://www.phpdeveloper.org/news/9694</guid>
      <link>http://www.phpdeveloper.org/news/9694</link>
      <description><![CDATA[<p>
php|architect is <a href="http://c7y-bb.phparchitect.com/viewtopic.php?f=2&t=1108">hosting a coding contest</a> that started on Saturday. The task is to grab the contents of an HTML file and grab all of the links out of it, removing duplicates.
</p>
<blockquote>
You may use any built in function, the phpinfo() of the server used for testing will be attached. You just need to retrieve the links, you don't need to worry about them being relative or absolute.
</blockquote>
<p>
It should be able to be called from the command line and return the links, one per line. They include how the scripts will be measured (speed, accuracy, etc) and the prize list - $100 gift card for phparch.com, a one year subscription or *drum roll* an autographed picture of ProPHP podcast hosts <i>Paul Reinheimer</i> and <i>Sean Coates</i>.
</p>
<p>
To submit your entry just email it over to <a href="mailto:c7ycontests@phparch.com">c7ycontests@phparch.com</a> with the subject of "C7Y Contest - February" on it.
</p>]]></description>
      <pubDate>Mon, 25 Feb 2008 07:57:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[ProDevTips.com: HTML entity encoding everything]]></title>
      <guid>http://www.phpdeveloper.org/news/9529</guid>
      <link>http://www.phpdeveloper.org/news/9529</link>
      <description><![CDATA[<p>
On the ProDevTips site, <i>Henrik</i> has pointed out <a href="http://www.greywyvern.com/php">a handy application</a> that can make HTML encoding characters outside the norm in PHP simple.
</p>
<blockquote>
The standard htmlentities() function will encode special characters so that they display OK in the browser. However, sometimes you might want to encode different languages to entities too. I just found a script that will do that in the form of an <a href="http://www.greywyvern.com/php">html encode application</a>.
</blockquote>
<p>
He <a href="http://www.prodevtips.com/2008/01/30/html-entity-encoding-everything/">includes an example</a> showing how to encode a string of non-english characters out to an easy-to-display HTMLified string.
</p>]]></description>
      <pubDate>Wed, 30 Jan 2008 12:57:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Make Me Pulse Blog: Yui Treeview with Php tidy]]></title>
      <guid>http://www.phpdeveloper.org/news/9476</guid>
      <link>http://www.phpdeveloper.org/news/9476</link>
      <description><![CDATA[<p>
<i>Antoine Ughetto</i> has <a href="http://blog.makemepulse.com/2008/01/22/yui-treeview-with-php-tidy/">quickly posted</a> about an interesting combination - <a href="http://fr.php.net/manual/en/ref.tidy.php">php_tidy</a> and the <a href="http://developer.yahoo.com/yui/treeview/">Yahoo! YUI Treeview</a> to easily make a nested, recursive list.
</p>
<blockquote>
A rapid experimentation with php tidy and Yui treeview for rendering the DOM of a specific page. We user the tidy_parse_file() and a simple recursive function to display a treeview.
</blockquote>
<p>
You can <a href="http://dev.makemepulse.com/tidy_yui/">check out an example</a> over on their demo page. Plug in your website of choice and get the resulting HTML stricture (all cleaned up) represented as a nice, ordered tree list.
</p>]]></description>
      <pubDate>Wed, 23 Jan 2008 11:18:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Handling Static Data with PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/8633</guid>
      <link>http://www.phpdeveloper.org/news/8633</link>
      <description><![CDATA[<p>
On DevShed, there's a <a href="http://www.devshed.com/c/a/PHP/Handling-Static-Data-with-PHP-5/">new tutorial</a> that talks about the other half of working with dynamic websites - working with the static content:
</p>
<blockquote>
It's pretty common when using PHP to develop dynamic, object-oriented applications. Every so often, though, you need to work with static data. This article will explain how to work with static data and static properties, and show you how this ability can be useful in real-world situations.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Handling-Static-Data-with-PHP-5/">show how</a> to create dynamic divs for your content, "factoring" them (creating them with a Factory design pattern) and an example of it all working together.
</p>]]></description>
      <pubDate>Tue, 11 Sep 2007 14:33:00 -0500</pubDate>
    </item>
  </channel>
</rss>
