<?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>Thu, 20 Nov 2008 19:18:27 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Francois Zaninotto's Blog: Validating a YAML file against a schema in PHP ]]></title>
      <guid>http://www.phpdeveloper.org/news/11081</guid>
      <link>http://www.phpdeveloper.org/news/11081</link>
      <description><![CDATA[<p>
<i>Francois Zaninotto</i> submitted a <a href="http://redotheweb.com/2008/09/09/validating-a-yaml-file-against-a-schema-in-php/">tutorial he's written up</a> about creating a YAML validation script with PHP.
</p>
<blockquote>
As of today, there is no simple way to validate the syntax of a YAML file in PHP. But with two simple tricks, it takes only a few dozens of lines of code to build a robust validator capable of checking the syntax of any YAML file against a given schema.
</blockquote>
<p>
He points out that Ruby has a tool for this (<a href="http://www.kuwata-lab.com/kwalify/">kwalify</a>) but PHP doesn't. He creates his own with the help of the <A href="http://trac.symfony-project.org/browser/branches/1.1/lib/yaml">sfYaml</a> component from the symfony framework, translating the YAML data into something PHP can parse more easily - XML. He passes this through an XSL parser and uses the DOM XML <a href="http://php.net/schemaValidate">schemaValidate</a> function to check it against the given schema.
</p>]]></description>
      <pubDate>Wed, 24 Sep 2008 12:58:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Padraic Brady's Blog: ZF Blog Tutorial Addendum #1: Base URL, Magic Quotes, Database Schema & UTF-8]]></title>
      <guid>http://www.phpdeveloper.org/news/10302</guid>
      <link>http://www.phpdeveloper.org/news/10302</link>
      <description><![CDATA[<p>
<i>Padraic Brady</i> has <a href="http://blog.astrumfutura.com/archives/373-Zend-Framework-Blog-Application-Tutorial-Addendum-1-Base-URL,-Magic-Quotes-Reversal,-Database-Schema-and-UTF-8-Title-Transliteration.html">an addendum</a> he's posted to his "making a blogging application with the Zend Framework" series dealing with a few random issues from along the way.
</p>
<blockquote>
The interesting thing about live publishing of a long tutorial series is that it's not flawless. In fact it's the opposite. [...] To cover all these I'll occasionally highlight the more important ones both in notes to new entries, or where they slip past me, in Addendum entries like this one.
</blockquote>
<p>
There's four sections in <a href="http://blog.astrumfutura.com/archives/373-Zend-Framework-Blog-Application-Tutorial-Addendum-1-Base-URL,-Magic-Quotes-Reversal,-Database-Schema-and-UTF-8-Title-Transliteration.html">this update</a> - one dealing with the referencing of base URLs, another worrying about magic_quotes settings, an updated database schema for the project and the final about removing non-english characters in the title URLs.
</p>]]></description>
      <pubDate>Thu, 29 May 2008 16:12:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[IBM developerWorks: Use an XML database in PHP and Java applications]]></title>
      <guid>http://www.phpdeveloper.org/news/9904</guid>
      <link>http://www.phpdeveloper.org/news/9904</link>
      <description><![CDATA[<p>
The IBM developerWorks site has <a href="http://www.ibm.com/developerworks/edu/x-dw-x-xmldbjavaphp.html?S_TACT=105AGX44&S_CMP=HP">posted a tutorial</a> (you'll need to log in) showing how to use native XML databases to speed up development time for your applications.
</p>
<blockquote>
Native XML databases have grown in popularity along with XML, because data is stored as native XML, rather than through tables in a traditional database. Using a native XML database means that a change to the schema requires minimal changes to your code and no change to the database. PHP and Java developers can benefit greatly from using native XML databases
</blockquote>
<p>
IT talks about how to connect to the database (in this case DB2), grab the XML data via a query and how to insert information back in via a web-based form. There's also an example showing how to make a "search" on the data and how to change the schema of the database on the fly as well.
</p>]]></description>
      <pubDate>Thu, 03 Apr 2008 09:33:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Greg Beaver's Blog: Update to libxml2 in PHP - progress hath been acquired]]></title>
      <guid>http://www.phpdeveloper.org/news/7988</guid>
      <link>http://www.phpdeveloper.org/news/7988</link>
      <description><![CDATA[<p>
Related to an <a href="http://greg.chiaraquartet.net/archives/176-W3C-SchemaRelax-NGDTD-seem-to-be-totally-useless-in-PHP,-help.html">issue from a previous post</a>, <i>Greg Beaver</i> has <a href="http://greg.chiaraquartet.net/archives/177-Update-to-libxml2-in-PHP-progress-hath-been-acquired.html">posted a solution</a> to his Relax NG schema problem in PHP.
</p>
<blockquote>
Shortly after my last blog post, I got a very helpful email from Rob Richards, who offered to help me with my trials and tribulations. He took a quick look at the schema for package.xml, and a sample package.xml and was able to find two small tweaks to make parsing actually work (gasp). This changes everything. I am abandoning the creation of a relax NG schema in favor of the battle-tested xsd. The error messages for xsd validation are far clearer than the rng ones.
</blockquote>
<p>
The <a href="http://greg.chiaraquartet.net/archives/177-Update-to-libxml2-in-PHP-progress-hath-been-acquired.html">code included</a> shows how much simpler the error messages are with the XSD validation option versus the RNG ones.
</p>]]></description>
      <pubDate>Wed, 06 Jun 2007 11:45:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Raphael Stolt's Blog: Validating XML files within PHP 4 applications]]></title>
      <guid>http://www.phpdeveloper.org/news/7696</guid>
      <link>http://www.phpdeveloper.org/news/7696</link>
      <description><![CDATA[<p>
<i>Raphael Stolt</i> has <a href="http://raphaelstolt.blogspot.com/2007/04/validating-xml-files-within-php-4.html">posted a new tutorial</a> today talking about how to validate the content of XML files within a PHP 4 application.
</p>
<blockquote>
Today I ran into a small problem, validating import XML data against a DTD(Document Type Definition), and discovered a neat way to solve this without PHP4's own means, as the PHP 4 version on the running system wasn't supporting the DOM XML Functions. <a href="http://xmlsoft.org/xmllint.html">Xmllint</a>, a command line XML tool, parses provided XML files and can be used to verify that these files are well formed and are satisfying an associated DTD/XML Schema.
</blockquote>
<p>
In his <A href="http://raphaelstolt.blogspot.com/2007/04/validating-xml-files-within-php-4.html">example</a> he shows a simple implementation of the tool, grabbing the file's information and pushing it through a command line request to check the file.
</p>]]></description>
      <pubDate>Tue, 24 Apr 2007 14:49:10 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer.com: Creating a Code Search Engine with PHP and MySQL]]></title>
      <guid>http://www.phpdeveloper.org/news/7611</guid>
      <link>http://www.phpdeveloper.org/news/7611</link>
      <description><![CDATA[<p>
Developer.com has posted <a href="http://www.developer.com/db/article.php/3671021">a new tutorial</a> by <i>Jason Gilmore</i> about the creation of a simple search engine based around a MySQL database and using PHP to perform the queries.
</p>
<blockquote>
In this article I'll offer a simplified version of this search engine, introducing you to some compelling PHP and MySQL features along the way. You might adopt what you learn towards building your own search engine, or towards other applications.
</blockquote>
<p>
He <a href="http://www.developer.com/db/article.php/3671021">starts with the base</a> of the application - the database schema (including loading data into it) - and works up from there. He opts to go with the fulltext search type as it can provide a huge performance boost over just using something like LIKE statements in your query. He also includes a bit of HTML for help make the output easier to use.
</p>]]></description>
      <pubDate>Thu, 12 Apr 2007 09:30:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[WebCheatSheet.com: Two New Tutorials - Database Export & Sending Email]]></title>
      <guid>http://www.phpdeveloper.org/news/7252</guid>
      <link>http://www.phpdeveloper.org/news/7252</link>
      <description><![CDATA[<p>
<a href="http://www.webcheatsheet.com/">WebCheatSheet.com</a> has two new tutorials posted today - one dealing with the export of a database schema in an XML format and the other about sending emails from PHP.
</p>
<p>
Here's <a href="http://www.webcheatsheet.com/php/export_database_schema_xml.php">a link to</a> the first article.
</p>
<blockquote>
Sometimes it can be useful to have a dump of the current database schema. This script reads the schema from a MySQL database and outputs XML that describes the schema.
</blockquote>
<p>
And <a href="http://www.webcheatsheet.com/php/send_email_text_html_attachment.php">a link to</a> article number two.
</p>
<blockquote>
So, you want to send automated email messages from your PHP application. This can be in direct response to a user's action, such as signing up for your site, or a recurring event at a set time, such as a monthly newsletter. Sometimes email contains file attachments, both plain text and HTML portions, and so on. To understand how to send each variation that may exist on an email, we will start with the simple example and move to the more complicated.
</blockquote>]]></description>
      <pubDate>Fri, 09 Feb 2007 12:36:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[WebReference.com: Creating a Custom RSS Feed with PHP and MySQL]]></title>
      <guid>http://www.phpdeveloper.org/news/6571</guid>
      <link>http://www.phpdeveloper.org/news/6571</link>
      <description><![CDATA[<p>
The WebReference.com site has a <a href="http://www.webreference.com/authoring/languages/xml/rss/custom_feeds/">new tutorial</a> posted today - a look at the creation of a custom RSS feed with the help of a a dash of both PHP and MySQL.
</p>
<blockquote>
You'll learn how to syndicate your own custom RSS feeds using PHP and MySQL. We'll first learn how to create two database tables and then how to retrieve data from them which will be formatted into an RSS feed.
</blockquote>
<p>
They start from scratch instead of trying to integrate with your pre-existing database schema. They choose to go with a news system that includes the contents of the post, an image associated with it, and a link back to it. They <a href="http://www.webreference.com/authoring/languages/xml/rss/custom_feeds/2.html">create a class</a> to make the RSS that contains methods like GetFeed, getDetails, and getItems to help build the RSS output. It's all done by appending the tags and information togethter, so don't look for any XML handling here.
</p>]]></description>
      <pubDate>Wed, 25 Oct 2006 09:56:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Creating a Login Script for a PHP Invoicing System]]></title>
      <guid>http://www.phpdeveloper.org/news/6210</guid>
      <link>http://www.phpdeveloper.org/news/6210</link>
      <description><![CDATA[<p>
DevShed is starting another new series today with <a href="http://www.devshed.com/c/a/PHP/Creating-a-Login-Script-for-a-PHP-Invoicing-System/">part one</a> of their look at "Building an Invoicing System" - building the login script.
</p>
<blockquote>
In this first part of "Building an Invoicing System," we are going to look at invoice management. Why would anyone want an online invoicing system? Well, if you are a freelance web developer like myself, you will undoubtedly need to invoice your clients so as to be able to get paid at the end of the month. This application will help you to manage your client details as well as your invoices.
</blockquote>
<p>
It's a basic level tutorial, and <a href="http://www.devshed.com/c/a/PHP/Creating-a-Login-Script-for-a-PHP-Invoicing-System/">starts from the basics</a> - being sure PHP and MySQL are installed and working together. They offer a few troubleshooting tips if things aren't working right before giving you the database schema and the actual (simple) script to use for logging in a user.
</p>]]></description>
      <pubDate>Thu, 07 Sep 2006 06:53:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Generating View from MySQL to Simulate the Model-View-Controller Schema in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6096</guid>
      <link>http://www.phpdeveloper.org/news/6096</link>
      <description><![CDATA[<p>
DevShed has posted <a href="http://www.devshed.com/c/a/PHP/Generating-View-from-MySQL-to-Simulate-the-ModelViewController-Schema-in-PHP/">part three</a> in their "Simulating the Model-View-Controller Schema in PHP" series today, this time focusing on the last of the three, the View.
</p>
<blockquote>
<p>
All right, after refreshing the topics covered previously, as well as clarifying some key concepts with reference to the concrete subject of this series, this journey will continue by constructing yet another practical example to expand your overall knowledge of object-based programming with PHP. In particular, it's designed to show you to use a MVC-driven relationship in another real-world situation.
</p>
<p>
If you're wondering to what other cases this relationship can be specifically applied, then I have good news for you. In this final article, I'll show you how to implement the MVC schema, in order to generate different outputs (or views) from a given MySQL data set. 
</p>
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Generating-View-from-MySQL-to-Simulate-the-ModelViewController-Schema-in-PHP/">start over</a> with their code, generating a new schema based around a MySQL processing class. The controller pulls its information from the database (our model) as to how the results should be displayed. Next they describe the model to help interface with the actual table and finishing it off with the output class, resulting in either XML or plain-text output of the user information.
</p>]]></description>
      <pubDate>Mon, 21 Aug 2006 08:46:30 -0500</pubDate>
    </item>
  </channel>
</rss>
