<?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, 17 May 2012 03:34:20 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Danne Lundqvist's Blog: Getting to grips with an existing XML structure]]></title>
      <guid>http://www.phpdeveloper.org/news/17864</guid>
      <link>http://www.phpdeveloper.org/news/17864</link>
      <description><![CDATA[<p>
<i>Danne Lundqvist</i> has a new post where he shares a bit of code he's written to "come to grips" with <a href="http://www.dotvoid.com/2012/04/getting-to-grips-with-an-existing-xml-structure/">an existing XML structure</a>.
</p>
<blockquote>
Very often I find myself writing input filters for large XML files using PHP. Common enough task; and PHP offer a great variety of tools to do this effectively depending on the situation. Unfortunately, almost as common is the lack of documentation for the aforementioned XML files. [...] I have looked around for a simple tool but I didn't really find a  tool that gave me the quick and dirty overview I wanted. A year or so ago I finally wrote a small PHP class to analyze large XML files.
</blockquote>
<p>
He includes an example XML file, the <a href="http://www.dotvoid.com/wp-content/uploads/2012/04/xmlstruct.png">HTML output</a> of the parsing and a sample of how to use <a href="http://www.dotvoid.com/wp-content/uploads/2012/04/xmlgrips.tar.gz">the class</a> to parse and output the XML structure, complete with some CSS.
</p>]]></description>
      <pubDate>Wed, 25 Apr 2012 10:44:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Form Validation with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17660</guid>
      <link>http://www.phpdeveloper.org/news/17660</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial showing how to <a href="http://phpmaster.com/form-validation-with-php/">do some form validation</a> using some basic PHP (no external libraries or tools here). This is a beginner level tutorial to help you get familiar with the concepts behind doing validation (and 
</p>
<blockquote>
In this article you'll construct and validate a simple form using HTML and PHP. The form is created using HTML and validation and processing of the form's contents is done with PHP. The goal is to teach you some basic HTML form elements and how their data is accessible to you in your PHP scripts.
</blockquote>
<p>
They start with the form itself, a basic setup with various kinds of fields - text, select, radio and a checkbox. Both the HTML markup and the PHP to do the validation is included. They check for things like "not empty", "must select one" and optional fields. Be sure to read <a href="http://phpmaster.com/form-validation-with-php/#comments">the comments</a> for some good tips on filtering the form's input too.
</p>]]></description>
      <pubDate>Mon, 12 Mar 2012 12:17:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Smashing Magazine: Create A Christmas Wish List With PHP (For Beginners)]]></title>
      <guid>http://www.phpdeveloper.org/news/17298</guid>
      <link>http://www.phpdeveloper.org/news/17298</link>
      <description><![CDATA[<p>
In <a href="http://coding.smashingmagazine.com/2011/12/22/create-a-christmas-wish-list-with-php/">this new tutorial</a> Smashing Magazine shows you how to create a mini "Christmas List" application with PHP, HTML and CSS (and a little bit of database help) to display a list of what you or your family wants this holiday.
</p>
<blockquote>
'Tis the season to be jolly, and how much jollier could we make it than with a helpful Christmas wish list crafted for your family to ensure that you get maximum presentage this holiday? In this article, we will focus on creating a very simple system that allows you to add gift ideas to a Web page, and for your family (or whoever) to view the list.
</blockquote>
<p>
They walk you through the setup of the basic PHP file structure, the HTML template for the list output, CSS to make it look nice and the actual PHP backend - working with a MySQL database to pull out product information and use a simple login method.
</p>]]></description>
      <pubDate>Fri, 23 Dec 2011 10:23:51 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Sending Emails with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17031</guid>
      <link>http://www.phpdeveloper.org/news/17031</link>
      <description><![CDATA[<p>
In a new tutorial from PHPMaster.com <i>Jason Pasnikowski</i> takes a look at <a href="http://phpmaster.com/sending-emails-with-php/">sending emails with PHP</a> - an introduction to what the language offers and how it can be used to send an HTML version.
</p>
<blockquote>
In most cases your installation of PHP will be capable of sending emails. If you are using a shared host, or if you installed PHP using a package management system like apt-get, more than likely you're all set. You'll really only need to worry about extra configuration if you're compiling PHP from source or if you're running it on Windows. In either case, there are plenty of resources available online to help you out. Because that's all beyond the scope of this article, I'll assume you're set. If not, Google will be your friend.
</blockquote>
<p>
He starts with a simple example using the <a href="http://php.net/mail">mail</a> function but quickly moves on to sending a multi-part email with an attached zip file and HTML content. He includes the all code you'll need and explains each part in detail so you'll know exactly what's going on.
</p>]]></description>
      <pubDate>Mon, 24 Oct 2011 20:08:52 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Script-Tutorials.com: Creating Your Own Commenting System from Scratch]]></title>
      <guid>http://www.phpdeveloper.org/news/17000</guid>
      <link>http://www.phpdeveloper.org/news/17000</link>
      <description><![CDATA[<p>
Script-Tutorials.com has a new article posted today showing you how to combine PHP, some CSS, a dash of SQL and some HTML (oh, and jQuery) to create <a href="http://www.script-tutorials.com/how-to-create-own-commenting-system/">your own commenting system</a> from scratch that could be used anywhere from a simple blog to a more complex social site.
</p>
<blockquote>
Today I prepared new interesting article - I will tell how you can create own commenting system (AJAX) for your items (any units at your website) with PHP. For our demonstration - I prepared two SQL tables: first table will keep records of our items. It contain several fields: title, description, time of adding and comments count. Another table will keep records of comments. We will use jQuery too (for better interface behavior). One of features will spam protection (we can post no more than one comment every 10 minutes)!
</blockquote>
<p>
<a href="http://www.script-tutorials.com/how-to-create-own-commenting-system/">The tutorial</a> includes all of the code, markup and styling you'll need to make the system work. If you'd like to get right into the code you can <a href="http://www.script-tutorials.com/demos/163/source.zip">download it as a package</a> or you can <a href="http://www.script-tutorials.com/demos/163/index.php">try out their demo</a>.
</p>]]></description>
      <pubDate>Mon, 17 Oct 2011 11:30:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: PHP Simple HTML DOM Parser: Editing HTML Elements in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16833</guid>
      <link>http://www.phpdeveloper.org/news/16833</link>
      <description><![CDATA[<p>
On PHPBuilder.com today there's a new tutorial from <i>Vojislav Janjic</i> about using a <a href="http://www.phpbuilder.com/columns/PHP_HTML_DOM_parser/PHPHTMLDOMParser.cc_09-07-2011.php3">simple DOM parser</a> in PHP to edit the markup even if it's not correctly W3C-formatted - the <a href="http://simplehtmldom.sourceforge.net/">Simple HTML DOM Parser</a>
</p>
<blockquote>
Simple HTML DOM parser is a PHP 5+ class which helps you manipulate HTML elements. The class is not limited to valid HTML; it can also work with HTML code that did not pass W3C validation. Document objects can be found using selectors, similar to those in jQuery. You can find elements by ids, classes, tags, and much more. DOM elements can also be added, deleted or altered. 
</blockquote>
<p>
They help you get started using the parser, passing in the HTML content to be handled (either directly via a string or loading a file) and locating elements in the document either by ID, class or tag. Selectors similar to those in CSS are available. Finally, they show how to find an object and update its contents, either by adding more HTML inside or by appending a new object after it.
</p>]]></description>
      <pubDate>Thu, 08 Sep 2011 10:06:07 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Building a Multilingual PHP Website]]></title>
      <guid>http://www.phpdeveloper.org/news/16802</guid>
      <link>http://www.phpdeveloper.org/news/16802</link>
      <description><![CDATA[<p>
On PHPBuilder.com today there's a new post from <i>Vojislav Janjic</i> with three methods (sans-framework) that you can use to <a href="http://www.phpbuilder.com/columns/MultilingualPHPSite/index.php3">create a multilingual website</a> - some a bit easier to maintain than others.
</p>
<blockquote>
Fast internet growth has brought many opportunities in the global market. Businesses can reach their customers across many countries, and information sharing is not limited to a local area or country anymore. This is why there is an increasing tendency for multilingual websites. By having a website in multiple languages, you can target local markets more easily. Also, it is more convenient to use a website in your native language.
</blockquote>
<p>
His three methods are all relatively simple, but they all have their good and bad points - making separate HTML/views for each language, creating XML files with different versions of the content or storing the translations in a MySQL database. He gives quick code snippets showing how to implement each of them, some basing the language on a cookie value, others on a GET variable passed to the page.
</p>]]></description>
      <pubDate>Thu, 01 Sep 2011 09:02:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tutorialzine.com: Creating a PHP and CSS3 Powered About Page]]></title>
      <guid>http://www.phpdeveloper.org/news/16587</guid>
      <link>http://www.phpdeveloper.org/news/16587</link>
      <description><![CDATA[<p>
In <a href="http://tutorialzine.com/2011/07/about-page-vcard-php-css/">this new tutorial</a> from Tutorialzine.com, <i>Martin Angelov</i> shows you how to combine a bit of PHP, CSS3 and HTML to create a more functional "About" page for your site that shares contact information in multiple formats.
</p>
<blockquote>
In this tutorial, we will be creating a simple about page that is powered by PHP, HTML5 and CSS3. It will present your contact information to your visitors, with an option for downloading it as a vCard (useful for importing it in third party applications). You can use today's example as a placeholder for your upcoming personal website, or as an actual about page.
</blockquote>
<p>
He includes all of the code, markup and styling you'll need to get it put together. The PHP is used to store the contact details and, based on a flag in the GET request (easily modifiable to any other method, like a HTTP header) it returns the basic page, a JSON set or a vcard of the contact data. The page also includes spots for linking to Facebook and Twitter accounts.
</p>]]></description>
      <pubDate>Wed, 13 Jul 2011 12:09:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Script-Tutorials.com: How to parse web pages using XPath]]></title>
      <guid>http://www.phpdeveloper.org/news/16228</guid>
      <link>http://www.phpdeveloper.org/news/16228</link>
      <description><![CDATA[<p>
On the Script-Tutorials.com site there's a new article showing you how to <a href="http://www.script-tutorials.com/how-to-parse-web-pages-using-xpath/">use XPath to parse web pages</a>, complete with screenshots of the page and the code to make it happen.
</p>
<blockquote>
Today I will tell you how you can make parsers of remote HTML pages (in PHP). In this article I will show you how to perform xpath queries to Web pages. XPath - a query language to elements of xml or xhtml document. To obtain the necessary data, we just need to create the necessary query. For the work, we also need: browser Mozilla Firefox, <a href="https://addons.mozilla.org/en-us/firefox/addon/firebug/">firebug</a> and <a href="https://addons.mozilla.org/ru/firefox/addon/firepath/">firepath</a> plugins. For our experiment, I suggest this webpage <a href="http://news.google.com/news/section?pz=1&cf=all&topic=t&ict=ln">Google Sci/Tech News</a>. Of course you can choose any other web page too.
</blockquote>
<p>
They provide <a href="http://www.script-tutorials.com/demos/59/index.php">two</a> <a href="http://www.script-tutorials.com/demos/59/index-2.php">demos</a> and a <a href="http://www.script-tutorials.com/demos/59/source.zip">downloadable package</a> with everything you need. The script pulls in the page as a DOM document (which works as long as it's correctly formatted XML) and spits back out the matches from a few different XPath expressions. There's <a href="http://www.google.com/#q=xpath+examples">all sorts of sites</a> out there that can help you with examples of other XPath expressions and syntax.
</p>]]></description>
      <pubDate>Thu, 21 Apr 2011 09:49:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ServerGrove Blog: Editing Twig Templates in Dreamweaver]]></title>
      <guid>http://www.phpdeveloper.org/news/15998</guid>
      <link>http://www.phpdeveloper.org/news/15998</link>
      <description><![CDATA[<p>
On the ServerGrove blog today there's a new post showing how you can set up Dreamweaver to be able to <a href="http://blog.servergrove.com/2011/03/03/editing-twig-templates-in-dreamweaver/">edit Twig templates</a> directly, complete with syntax highlighting.
</p>
<blockquote>
If you are a designer working with Symfony developers you will soon encounter Twig. Twig is a template engine for PHP that has been adopted by Symfony 2, and from a designers perspective, it's a major improvement over the way things are done in Symfony! For designers who have used templating systems like Smarty before, Twig is going to be a walk in the park, if you have not used a templating system before, Twig is a great place to start. 
</blockquote>
<p>
It's a simple two-step process to get things up and working. You just need to tell Dreamweaver that ".twig" files should be recognized as code and set up the syntax highlighting in the "MMDocumentTypes" XML configuration file (might be a little tricky for non-development types). This change tells the program to open them with HTML syntax highlighting.
</p>]]></description>
      <pubDate>Fri, 04 Mar 2011 10:16:28 -0600</pubDate>
    </item>
  </channel>
</rss>

