<?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, 23 May 2013 14:49:03 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Exploring PHP's IMAP Library, Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/18556</guid>
      <link>http://www.phpdeveloper.org/news/18556</link>
      <description><![CDATA[<p>
PHPMaster.com has published the <a href="http://phpmaster.com/exploring-phps-imap-library-2/">second part of their series</a> taking you on a tour through PHP's IMAP extension and its use. In <a href="http://phpmaster.com/exploring-phps-imap-library-1/">part one</a> they introduced the extension and showed how to connect, get the folders/emails and view message contents. In this part they expand n that and show you how to work with the messages and attachments.
</p>
<blockquote>
In the first part of this series I discussed how to connect to IMAP servers using PHP's IMAP extension. In this part we'll complete the series by discussing working with folders and reading email content. Let's get started!
</blockquote>
<p>
He shows how to work with the "flags" set on messages (read, unread, replied, etc) - pulling them from the server and using the <a href="http://php.net/imap_setflag_full"> imap_setflag_full</a> function to set them. There's a quick mention of deleting messages with <a href="http://php.net/imap_delete">imap_delete</a>/<a href="http://php.net/imap_expunge">imap_expunge</a> and a section on viewing and downloading the attachments to messages.
</p>]]></description>
      <pubDate>Thu, 04 Oct 2012 10:36:22 -0500</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[SpeckBoy.com: Getting Started with CRUD In PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15929</guid>
      <link>http://www.phpdeveloper.org/news/15929</link>
      <description><![CDATA[<p>
On SpeckBoy.com there's <a href="http://speckyboy.com/2011/02/17/getting-started-with-crud-in-php/">a new tutorial</a> posted that introduces you to the concept of CRUD - Create, Read, Update, Delete - in the database interface for your application. Technically CRUD can be applied to any sort of data store, but they chose to go with a MySQL-based example.
</p>
<blockquote>
It has become a common necessity for website owners to collect data and manage it properly. Creating a MySQL CRUD class allows you to conveniently create, read, update and delete entries for any of your projects, indifferent of how the database is devised. CRUD allows us to generate pages to list and edit database records.
So, in this tutorial I will show you how to build a simple CRUD web app, that will empower you with the basic functions of database management.
</blockquote>
<p>
They briefly walk you through the setup of a <a href="http://www.apachefriends.org/en/xampp.html">XAMPP</a> server to use as a base and give you the settings needed to create a simple users table. The rest of the post is the code you'll need to make the connection from your PHP script, insert data into the table, update them, remove the rows and display their contents. They've wrapped it all up in a single "index.php" file to make it simpler.
</p>]]></description>
      <pubDate>Fri, 18 Feb 2011 12:10:10 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: How to create Doctrine 1-style Soft-Delete in Doctrine 2]]></title>
      <guid>http://www.phpdeveloper.org/news/15539</guid>
      <link>http://www.phpdeveloper.org/news/15539</link>
      <description><![CDATA[<p>
<i>Jani Hartikainen</i> has <a href="http://codeutopia.net/blog/2010/12/04/how-to-create-doctrine-1-style-soft-delete-in-doctrine-2/">posted his technique</a> for making the Doctrine version 1 style "soft delete" in your Doctrine 2 powered application.
</p>
<blockquote>
Doctrine 1 has the concept of behaviors which you could add to your models. One of these was the soft-delete behavior, which allowed you to "delete" records without really deleting them. Doctrine 2 <a href="http://www.doctrine-project.org/blog/doctrine2-behaviours-nutshell">does not have behaviors due to various reasons</a>. However, I needed a way to have a model which worked like soft-delete. Let's see one approach to creating such behavior in Doctrine 2.
</blockquote>
<p>
He introduces the idea of a "soft delete" - essentially a flag that gets set to let the rest of the application think that row is essentially deleted. He shows you how to create the similar functionality via a repository that filters the data for you. He includes code to help you along, defining the find/findOneBy/findBy and the example repository that lets you set an "is deleted" property on the object.
</p>]]></description>
      <pubDate>Mon, 06 Dec 2010 13:02:08 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Deleting indexes from Zend_Registry and why you shouldn't do it !]]></title>
      <guid>http://www.phpdeveloper.org/news/15286</guid>
      <link>http://www.phpdeveloper.org/news/15286</link>
      <description><![CDATA[<p>
New on the Zend Developer Zone today there's a post that looks at working with the Zend_Registry component of the <a href="http://framework.zend.com">Zend Framework</a> and how deleting the index out of it directly <a href="http://devzone.zend.com/article/12643-Deleting-indexes-from-Zend_Registry-and-why-you-shouldnt-do-it-">could be a bad thing for your application</a>.
</p>
<blockquote>
Zend_Registry is the implementation of the Registry design pattern in the Zend Framework. It is similar to the $_GLOBALS array in pure PHP , but unlike it, it does not provide a transparent way to unset values at a specified index. As you will see in this short article, there is a very simple way to do it, but that doesn't mean it should be done.
</blockquote>
<p>
He advises against directly using the "_unsetInstance" method that the component provides to remove items from the registry but that could cause unwanted side effects with your data. Instead he recommends using the SPL ArrayObject interfaces and the "offsetUnset" method on the registry instance to drop the item. He ends with a word of warning, though - be careful what you remove in one part of your application because something, somewhere might be depending on it being there, set or not, to make another decision.
</p>]]></description>
      <pubDate>Fri, 15 Oct 2010 09:19:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Richard Thomas' Blog: Solar Framework Shorts - Deleting Caches]]></title>
      <guid>http://www.phpdeveloper.org/news/13294</guid>
      <link>http://www.phpdeveloper.org/news/13294</link>
      <description><![CDATA[<p>
<i>Richard Thomas</i> has <a href="http://www.phpjack.com/content/solar-framework-shorts-deleting-caches">posted a new "short"</a> for users of the <a href="http://solarphp.com">Solar Framework</a> to delete cached data.
</p>
<blockquote>
This one is simple but sweet, In your Models directory you define your Models and the basic rules they follow but do you know you can also make changes at the record level. Solar is smart and if it sees a Test/Record.php when creating records for the Test model it will load that class, this allows you to do all kinds of magic.
</blockquote>
<p>
His example shows how the script can automatically check, on pre-save, to see if the data is different than that in the cache and remove it if so. This cached data is replaced the next time through with the latest information.
</p>]]></description>
      <pubDate>Mon, 28 Sep 2009 11:11:57 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ian Selby's Blog: Making RESTful Requests in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/12519</guid>
      <link>http://www.phpdeveloper.org/news/12519</link>
      <description><![CDATA[<p>
In <a href="http://www.gen-x-design.com/archives/making-restful-requests-in-php/">a new post</a> to his blog <i>Ian Selby</i> looks at working with REST requests in PHP. He includes some of the basics of REST too, for those not completely familiar with the term.
</p>
<blockquote>
APIs have become a very commonplace part of many popular web sites and services...especially REST APIs. I've already <a href="http://www.gen-x-design.com/archives/create-a-rest-api-with-php/">discussed</a> how you can roll your own REST API for your PHP apps, but I've also received countless requests to go over how to actually make RESTful requests. That's exactly what we'll take a look at in this article
</blockquote>
<p>
His tool of choice is the curl extension, making it simple to create a class wrapper with methods like executePost, executeGet, setAuth and, of course, execute. He outlines the class and gives the code blocks that fit inside each of the major functions. In the end you'll have a class that can make GET, POST, PUT and DELETE requests and be able to correctly parse the response.
</p>]]></description>
      <pubDate>Fri, 15 May 2009 07:57:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Updating and Deleting Database Records with the Active Record Pattern]]></title>
      <guid>http://www.phpdeveloper.org/news/12120</guid>
      <link>http://www.phpdeveloper.org/news/12120</link>
      <description><![CDATA[<p>
DevShed has posted <a href="http://www.devshed.com/c/a/PHP/Updating-and-Deleting-Database-Records-with-the-Active-Record-Pattern/">the next article</a> in their Active Record series. This time it's a look at updating and deleting records from the database (the <a href="http://www.phpdeveloper.org/news/12075">previous article</a> was about selecting and inserting).
<p>
<blockquote>
This pattern permits you to achieve a high level of abstraction when performing typical operations, such as insertions, updates and deletions of records, since all of these tasks are handled transparently by data mappers objects or a data access class. [...] Now, it's time to learn how to use the active record pattern for performing database updates and deletions in a few simple steps.
</blockquote>
<p>
After <a href="http://www.devshed.com/c/a/PHP/Updating-and-Deleting-Database-Records-with-the-Active-Record-Pattern/1/">reviewing</a> the previous article, they add <a href="http://www.devshed.com/c/a/PHP/Updating-and-Deleting-Database-Records-with-the-Active-Record-Pattern/2/">some new features</a> onto the MySQL access class to let you update and remove data through a similar interface.
</p>]]></description>
      <pubDate>Thu, 12 Mar 2009 09:35:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Vinu Thomas' Blog: Create a Storage engine for MySQL using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11648</guid>
      <link>http://www.phpdeveloper.org/news/11648</link>
      <description><![CDATA[<p>
Using <a href="http://www.phpdeveloper.org/news/11638">this article</a> from <i>Johannes Schluter</i> as a starting point <i>Vinu Thomas</i> has worked up his <a href="http://blogs.vinuthomas.com/2008/12/30/create-a-storage-engine-for-mysql-using-php/">own example</a> of how the technique is used in the <a href="https://launchpad.net/mysql-php-storage">example</a> on the Launchpad page.
</p>
<blockquote>
This article is interesting because of the uses which come up when you can create custom Storage Engines using PHP. An interesting usecase for this is in creating test cases, where you can feed the data for a query from PHP and trap the activities on the database.
</blockquote>
<p>
The example code defines methods for update, write and delete and the SQL to create the table and insert/manipulate rows is included (for a table created with "ENGINE=PHP").
</p>]]></description>
      <pubDate>Wed, 31 Dec 2008 08:42:23 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Johannes Schluter's Blog: MySQL Storage Engine based on PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11638</guid>
      <link>http://www.phpdeveloper.org/news/11638</link>
      <description><![CDATA[<p>
In <a href="http://schlueters.de/blog/archives/96-MySQL-Storage-Engine-based-on-PHP.html">this new post</a> to his blog <i>Johannes Schluter</i>  looks at creating a storage engine plugin for MySQL via its <a href="http://dev.mysql.com/doc/refman/5.1/en/plugin-api.html">plugin interface</a>.
</p>
<blockquote>
MySQL 5.1 has a <a href="http://dev.mysql.com/doc/refman/5.1/en/plugin-api.html">plugin interface</a> to easily add storage engines. <a href="http://php.net/">PHP</a> can easily embedded into other applications.  So why not combine these two things? - Writing a <a href="http://dev.mysql.com/doc/refman/5.1/en/plugin-api.html">MySQL Storage Engine</a> which reads data by calling a PHP script.
</blockquote>
<p>
He starts with a basic example with create_table and open_table functions that can pull the data from the table marked with the "Engine" setting of PHP. He expands on this to allow for more functionality - update, delete and write methods are added.
</p>]]></description>
      <pubDate>Tue, 30 Dec 2008 08:42:03 -0600</pubDate>
    </item>
  </channel>
</rss>
