<?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, 23 May 2012 12:36:36 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Smashing Magazine: Writing Unit Tests For WordPress Plugins]]></title>
      <guid>http://www.phpdeveloper.org/news/17652</guid>
      <link>http://www.phpdeveloper.org/news/17652</link>
      <description><![CDATA[<p>
On the Smashing Magazine site there's a recent post looking at how to <a href="http://coding.smashingmagazine.com/2012/03/07/writing-unit-tests-for-wordpress-plugins/">unit test WordPress plugins</a> via the frontend using <a href="http://docs.jquery.com/QUnit">QUnit</a> (part of the <a href="http://jquery.com">jQuery</a> project).
</p>
<blockquote>
My first goal for the WordPress Editorial Calendar was to make it do anything useful. I was new to JavaScript and PHP and didn't really know what I could pull off. In a few days I had a proof of concept. In a few more I had a working version and was asking friends to install it. The calendar worked...sort of. I spent three times as much time fixing bugs as I did coding. Once the plugin worked, I wrote unit tests to make sure it kept working.
</blockquote>
<p>
He introduces the QUnit testing tool and includes some sample tests showing you how to create both a pass/fail and how to test a PHP value passed out to the page via PHP. There's also a section on getting WordPress and QUnit integrated and only executing when there's a "qunit" parameter on the URL. Actual tests for his calendar plugin are included and you can <a href="http://www.zackgrossbart.com/extras/sandbox/wp-admin/edit.php?page=cal&qunit=true">see the results of the tests here</a>.
</p>]]></description>
      <pubDate>Fri, 09 Mar 2012 10:46:32 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Script-Tutorials.com: Form Validation with Javascript and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17486</guid>
      <link>http://www.phpdeveloper.org/news/17486</link>
      <description><![CDATA[<p>
On the Script-Tutorials.com site today there's a <a href="http://www.script-tutorials.com/form-validation-with-javascript-and-php/">new tutorial about form validation</a> using a combination of jQuery on the frontend and PHP on the backend.
</p>
<blockquote>
In this tutorial, I will show you how to create an attractive, pleasant to look form for your website and then I will explain you how to dynamically validate them using Javascript. We'll also cover server-side validation with PHP to make everything 100% safe. This tutorial will help you to add more functionality to your forms which leads to better user experience and better quality of your website.
</blockquote>
<p>
His sample form (name, password, email and gender) is made from some pretty simple HTML markup. The real trick comes with the jQuery validation on each field handled in an onKeyUp. Included are both a "password strength" method and an email validation method to check the format of the address. Errored fields have their background color changed to indicate that they've failed and some basic validation (length, password match, etc.) are also included. The PHP does much of the same validation once the form is posted and returns any error messages that might have come up.
</p>
<p>
You can <a href="http://www.script-tutorials.com/demos/228/source.zip">download the code</a> or try out a <a href="http://www.script-tutorials.com/demos/228/index.php">live demo</a> to see the scripts together in action.
</p>]]></description>
      <pubDate>Thu, 02 Feb 2012 09:07:40 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[ZendCasts.com: RESTful Delete with SLIM, jQuery and JSON]]></title>
      <guid>http://www.phpdeveloper.org/news/17248</guid>
      <link>http://www.phpdeveloper.org/news/17248</link>
      <description><![CDATA[<p>
Continuing on with his webcast series looking at using the Slim microframework to create a RESTful web service with JSON Output, <i>John Lebensold</i> takes the code from the previous tutorials (<a href="http://phpdeveloper.org/news/16958">part one</a>, <a href="http://phpdeveloper.org/news/17044">two</a>, <a href="http://phpdeveloper.org/news/17106">three</a>) and <a href="http://www.zendcasts.com/restful-delete-with-slim-jquery-and-json/2011/12/">adds handling for DELETE</a> to remove values from the data.
</p>
<blockquote>
This tutorial will show you how to add jQuery RESTful calls for using the DELETE verb when deleting items via a JSON REST interface.
</blockquote>
<p>
You'll definitely need to check out either the previous tutorials in the series to follow along with the code or <a href="https://gist.github.com/1469109">grab the current source</a> to see how everything's structured.
</p>]]></description>
      <pubDate>Tue, 13 Dec 2011 09:56:34 -0600</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[Script-Tutorials.com: Autocomplete with PHP, jQuery, MySQL and XML]]></title>
      <guid>http://www.phpdeveloper.org/news/16981</guid>
      <link>http://www.phpdeveloper.org/news/16981</link>
      <description><![CDATA[<p>
In <a href="http://www.script-tutorials.com/autocomplete-with-php-jquery-mysql-and-xml/">this new tutorial</a> from Script-Tutorials.com they show you how to combine PHP, <a href="http://jquery.com">jQuery</a>, <a href="http://mysql.com">MySQL</a> and XML to create an auto-complete box with drop-down suggestions.
</p>
<blockquote>
Today I have new article for PHP. I will tell you about implementation autocomplete for your sites. Data can be located in different sources - directly in the JS code, in the database, and even in the XML file.
</blockquote>
<p>
All of the code and markup you'll need is included - the HTML for the page containing the field, CSS to style it, the Javascript (jQuery) to make the field work and the SQL/PHP/XML for the backend. You can check out a live demo of the script in action <a href="http://www.script-tutorials.com/demos/160/index.html">here</a> or <a href="http://www.script-tutorials.com/demos/160/source.zip">download the source</a> in a single package and get started.
</p>]]></description>
      <pubDate>Wed, 12 Oct 2011 08:54:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: Build Ajax Data Grids with CodeIgniter and jQuery]]></title>
      <guid>http://www.phpdeveloper.org/news/16901</guid>
      <link>http://www.phpdeveloper.org/news/16901</link>
      <description><![CDATA[<p>
In a new tutorial from NetTuts.com today they show you how to combine a <a href="http://codeigniter.com">CodeIgniter</a>-based backend and a <a href="http://jquery.com">jQuery</a> frontend to make a <a href="http://net.tutsplus.com/tutorials/javascript-ajax/build-ajax-data-grids-with-codeigniter-and-jquery-2/">simple Ajax data grid</a> of data pulled from a database.
</p>
<blockquote>
In this lesson, we will create a CodeIgniter library that allows us to generate data grids automatically for managing any database table. I'll explain each step required to create this class; so you'll likely learn some new OOP techniques/concepts in the process! As a bonus, we'll proceed to write some jQuery code that will enable a user to update the data grid's content without having to wait for a page refresh.
</blockquote>
<p>
The tutorial's broken up into a few different steps, each complete with descriptions and plenty of code ready for cut-and-paste:
</p>
<ul>
<li>Build a Data Grid Generator Class (a helper in PHP)
<li>Testing the Datagrid Helper Class with a CodeIgniter Controller
<li>Implementing Ajax (jQuery to the Rescue!)
<li>Check All or Nothing!
</ul>
<p>
You can also <a href="http://nettuts.s3.amazonaws.com/1053_ci_datagrid/CodeIgniter-datagrid-tutorial-source.rar">download the source</a> for all of the scripts if you'd like to dive right into the code.
</p>]]></description>
      <pubDate>Fri, 23 Sep 2011 12:23:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tutorialzine.com: AJAX-enabled Sticky Notes With PHP & jQuery]]></title>
      <guid>http://www.phpdeveloper.org/news/16796</guid>
      <link>http://www.phpdeveloper.org/news/16796</link>
      <description><![CDATA[<p>
On the Tutorialzine.com site there's an interesting (though a bit older) tutorial showing you how to combine jQuery, PHP and some CSS+HTML to make a <a href="http://tutorialzine.com/2010/01/sticky-notes-ajax-php-jquery/">simple sticky note application</a> complete with multiple note support and drag-and-drop abilities.
</p>
<blockquote>
Today we are making an AJAX-enabled Sticky Note management system. It will give visitors the ability to create notes with a live preview, and move them around on the screen. Every movement is going to be sent to the back-end via AJAX and saved in the database.
</blockquote>
<p>
They use the <a href="http://fancybox.net/">fancybox plugin</a> for jQuery to make creating the notes a lot simpler. Included in the tutorial is all of the HTML, CSS, javascript and PHP you'll need to create the application (as well as plenty of description along the way). You can see a demo of it in action <a href="http://demo.tutorialzine.com/2010/01/sticky-notes-ajax-php-jquery/demo.php">here</a> or just <a href="http://demo.tutorialzine.com/2010/01/sticky-notes-ajax-php-jquery/demo.zip">download the source</a> and dive right in. 
</p>]]></description>
      <pubDate>Wed, 31 Aug 2011 10:16:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tutorialzine.com: Building a Website with PHP, MySQL and jQuery Mobile, Part 1]]></title>
      <guid>http://www.phpdeveloper.org/news/16759</guid>
      <link>http://www.phpdeveloper.org/news/16759</link>
      <description><![CDATA[<p>
From Tutorialzine.com today, they've posted the <a href="http://tutorialzine.com/2011/08/jquery-mobile-product-website/">first part of a series</a> looking at the construction of a full mobile website using PHP, MySQL and jQuery mobile.
</p>
<blockquote>
In this two-part tutorial, we will be building a simple website with PHP and MySQL, using the Model-View-Controller (MVC) pattern. Finally, with the help of the <a href="http://jquerymobile.com/">jQuery Mobile framework</a>, we will turn it into a touch-friendly mobile website, that works on any device and screen size. In this first part, we concentrate on the backend, discussing the database and MVC organization. Next time, we will be writing the views and integrating jQuery Mobile.
</blockquote>
<p>
Their simple application lets you browse products in a storefront with products and their categories. They don't use any particular framework and instead opt for a "include all" approach in their example. This makes it simpler to bootstrap, but shouldn't be used in a production-ready version of the application. There's simple frameworks (like <a href="http://codeigniter.com">CodeIgniter</a> out there that can help take it to the next level without much more complexity). You can see a <a href="http://demo.tutorialzine.com/2011/08/jquery-mobile-product-website/">demo of it in action</a> or just <a href="http://demo.tutorialzine.com/2011/08/jquery-mobile-product-website/mobile-store.zip">download the source</a> to get started hacking.
</p>]]></description>
      <pubDate>Tue, 23 Aug 2011 12:33:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: Uploading Files with AJAX]]></title>
      <guid>http://www.phpdeveloper.org/news/16636</guid>
      <link>http://www.phpdeveloper.org/news/16636</link>
      <description><![CDATA[<p>
NetTuts.com has a new tutorial posted showing you some of the basics of <a href="http://net.tutsplus.com/tutorials/javascript-ajax/uploading-files-with-ajax/">uploading files via Ajax</a> a bit more natively.
</p>
<blockquote>
I can't seem to reach the end of the fun stuff you can do with emerging web technologies. Today, I'm going to show you how to do something that-until the last while-has been almost unprecedented: uploading files via AJAX. Oh, sure, there have been hacks; but if you're like me, and feel dirty every time you type iframe, you're going to like this a lot.
</blockquote>
<p>
Their method won't work in every browser, but it can be adapted to work as far back as IE6. The code and markup are included for each of the pieces for the example - the HTML for the upload form, the CSS to help style the resulting list of uploaded images, the simple PHP to handle the uploads and the <a href="http://jquery.org">jQuery</a>-based code that implements the FileReader and FormData objects supported in newer browsers. The end result is a page <a href="http://d2o0t5hpnwv4c1.cloudfront.net/1020_ajaxupload/ajax-upload.png">like this</a> that includes both the form and the list of uploaded images.
</p>]]></description>
      <pubDate>Tue, 26 Jul 2011 13:19:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Gonzalo Ayuso's Blog: Populating datagrid techniques with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16605</guid>
      <link>http://www.phpdeveloper.org/news/16605</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Gonzalo Ayuso</i> looks at the code required to <a href="http://gonzalo123.wordpress.com/2011/07/18/populating-datagrid-techniques-with-php/">populate a jQuery data grid</a> with the records as pulled from a (MySQL) database.
</p>
<blockquote>
Today I want to speak about populating datagrid techniques with PHP. At least in my daily work datagrids and tabular data are very common, because of that I want to show two different techniques when populating datagrids with data from our database. Maybe it's obvious, but I want to show the differences.
</blockquote>
<p>
He uses "old school spaghetti code" rather than a framework to keep things simple and pulls the data from the database with a PDO connection. This information is then manually pushed into an HTML table and the data grid functionality is applied to it. The other method involves a little bit of JSON magic that the data grid library pulls in and populates for you, still appending rows to a table. 
</p>
<p>
He notes that the second method seems faster to the user since the page and table are rendered first, but it also comes at the cost of more than one HTTP request.
</p>]]></description>
      <pubDate>Tue, 19 Jul 2011 09:25:46 -0500</pubDate>
    </item>
  </channel>
</rss>

