<?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, 26 May 2013 04:17:40 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Let's Talk: Efficient Communication for PHP and Android, Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/18052</guid>
      <link>http://www.phpdeveloper.org/news/18052</link>
      <description><![CDATA[<p>
On PHPMaster.com today they've posted the <a href="http://phpmaster.com/lets-talk-2/">second part of their series</a> looking at combining a PHP backend and an Android application (by <i>Matt Turland</i>). In the previous article, he helped you set up some of the Android side to be able to reach out to a PHP web service. In this second part he gets into the sending and receiving of messages between the client and server.
</p>
<blockquote>
Part 1 of this series focused on getting the Android application set up to make an HTTP request. In part 2, we'll focus on implementing the use of data serialization and compression on the Android and PHP sides of the request.
</blockquote>
<p>He has it broken up into the different steps of the process:</p>
<ul>
<li>Determining the Data Serialization Format
<li>Determining the Data Compression Format
<li>Sending the Response
<li>Decompressing the Response
<li>Deserializing the Response
</ul>
<p>
He also includes a section about caching the responses you get back from the server, an important step that can save you (and your users) some headaches and maybe even give a bit of a speed boost.
</p>]]></description>
      <pubDate>Tue, 05 Jun 2012 13:19:33 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Justin Carmony's Blog: PHP, Sessions, __sleep, and Exceptions]]></title>
      <guid>http://www.phpdeveloper.org/news/17738</guid>
      <link>http://www.phpdeveloper.org/news/17738</link>
      <description><![CDATA[<p>
<i>Justin Carmony</i> has a recent post to his blog about a problem he came across where his exception was being thrown with a line number of zero - cause for <a href="http://www.justincarmony.com/blog/2012/03/23/php-sessions-__sleep-and-exceptions/">some investigation</a>.
</p>
<blockquote>
Today I ran into a problem where my PHP Application would throw this fatal error: "Fatal error: Exception thrown without a stack frame in Unknown on line 0". Which is so much fun, because it doesn't have a line number, so I had no direction as to what exactly was causing the problem. 
</blockquote>
<p>
He found <a href="http://www.compdigitec.com/labs/2009/08/02/solving-fatal-error-exception-thrown-without-a-stack-frame-in-unknown-on-line-0/">a blog post</a> that helped him track down the issue that, as it turns out, with serializing objects into the session and an error in the __sleep method.
</p>]]></description>
      <pubDate>Tue, 27 Mar 2012 12:25:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Project: Aleksey Martynov's lexa-xml-serialization Tool for PHP 5.3]]></title>
      <guid>http://www.phpdeveloper.org/news/15089</guid>
      <link>http://www.phpdeveloper.org/news/15089</link>
      <description><![CDATA[<p>
<i>Aleksey Martynov</i> has submitted a project that can come in quite handy of you do a lot of work with XML in your application - a <a href="http://code.google.com/p/lexa-xml-serialization/">XML serialization tool</a> for PHP 5.3 that lets you easily translate objects into valid XML.
</p>
<blockquote>
lexa-xml-serialization is a lightweight library for serializing PHP objects to XML like it's done in .NET. My xml serializer requires that you mark serializable properties of your classes with doc-comment annotations. The properties are not required to be public. The lettercase of annotations doesn't matter. Whitespaces are not essential. Parameters are optional: type defaults to string, xmlName defaults to the property name. Parameter values must not be enclosed in quotes. Empty brackets may be omitted. 
</blockquote>
<p>
<a href="http://code.google.com/p/lexa-xml-serialization/">The page</a> on the Google Code site gives some examples of it in use as well as as "<a href="http://code.google.com/p/lexa-xml-serialization/wiki/FirstLook">first look</a>" tutorial about building a large, more complex XML file. If you want to try it out, head over to <a href="http://code.google.com/p/lexa-xml-serialization/downloads/list">the download page</a> to grab the latest.
</p>]]></description>
      <pubDate>Tue, 07 Sep 2010 12:40:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Cohesive Web: PHP serialization or Json]]></title>
      <guid>http://www.phpdeveloper.org/news/14548</guid>
      <link>http://www.phpdeveloper.org/news/14548</link>
      <description><![CDATA[<p>
On the Cohesive Web blog there's a new post looking at <a href="http://blog.webconsultingengineering.com/phptalk/phpserialize-or-json.html">storing complex data types</a> like data structures or objects effectively.
</p>
<blockquote>
Think of a situation where you are working with some array. Now there may be some situations where you need to store the array and retrieve it back. If you are familiar with OOPS concept then objects are another type which you may need to store and retrieve. Serialization is the process by which you can convert an object or data structure into a sequence of bits which can stored and retrieve back.
</blockquote>
<p>
They suggest an interesting option for storing object information - converting it to JSON instead of just serializing it and storing it that way. After running a few tests on the method, they found using the json method a bit better/lighter than the serialized way (for their purposes).
</p>]]></description>
      <pubDate>Mon, 24 May 2010 12:04:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Alexey Zakhlestin's Blog: Syck 0.9.2]]></title>
      <guid>http://www.phpdeveloper.org/news/9103</guid>
      <link>http://www.phpdeveloper.org/news/9103</link>
      <description><![CDATA[<p>
<i>Alexey Zakhlestin</i> has <a href="http://blog.milkfarmsoft.com/?p=78">released the latest version</a> of his <a href="http://pecl.php.net/package/syck">Syck</a> tool - a "parser and emitter" of YAML documents.
</p>
<blockquote>
I've just released <a href="http://pecl.php.net/package/syck">syck for php</a> 0.9.2 (a parser and emitter of <a href="http://www.yaml.org/">YAML</a> documents. If you don't know anything about YAML and why it is good: check my <a href="http://blog.milkfarmsoft.com/?cat=20">previous posts on the subject</a>). A lot of new and tasty features.
</blockquote>
<p>Updates he mentions include:</p>
<ul>
<li>stability and consistency fixes
<li>enhancements with object-serialization and unserialization
<li>loading of objects more class names
</ul>]]></description>
      <pubDate>Fri, 23 Nov 2007 09:14:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Terry Chay's Blog: serialization without pity]]></title>
      <guid>http://www.phpdeveloper.org/news/7473</guid>
      <link>http://www.phpdeveloper.org/news/7473</link>
      <description><![CDATA[<p>
In response to <a href="http://www.phpdeveloper.org/news/7453">a post from the Stubbles blog</a>, <i>Terry Chay</i> has <a href="http://terrychay.com/blog/article/object-serialization-without-pity.shtml">posted some of his thoughts</a> about the serialization solution presented in the other post.
</p>
<blockquote>
Frank Kleine writes a PHP 5 framework called <a href="http://stubbles.net/">Stubbles</a>. I have <a href="http://terrychay.com/blog/article/why-frameworks-fail.shtml">a long-standing view about frameworks</a> that hasn't changed one bit. But instead of arguing about the Sysaphean task Frank is engaging in, I'll show what my approach is to one small component (while being a bit jealous that he can actually develop in PHP 5).
</blockquote>
<p>
<i>Frank</i>'s solution involves storing the objects in the session, serializing them first. The issue comes up when the class(es) the object needs aren't included into the page. <i>Terry</i> offers a different sort of solution - one also using __autoload, but using it combined with unserialize_callback_func.
</p>
<p>
<i>Terry</i> compares this with <i>Frank</i>'s approach and notes that his method "closes off" the system from the very PHP functions that could make his life simpler (making a separate handling system). He also <a href="http://terrychay.com/blog/article/object-serialization-without-pity.shtml">includes</a> a method for doing the same when all you know is the class file's name (non-PEAR format). 
</p>]]></description>
      <pubDate>Wed, 21 Mar 2007 12:02:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Using Inheritance, Polymorphism and Serialization with PHP Classes]]></title>
      <guid>http://www.phpdeveloper.org/news/6043</guid>
      <link>http://www.phpdeveloper.org/news/6043</link>
      <description><![CDATA[<p>
Some concepts of object-oriented design are harder to figure out that others for a budding programmer. Thankfully, there's articles <a href="http://www.devshed.com/c/a/PHP/Using-Inheritance-Polymorphism-and-Serialization-with-PHP-Classes/">like this one</a> from DevShed to help fill in some of the gaps. Specifically, they focus on inheritance, polymorphism, and serialization in your PHP classes.
</p>
<blockquote>
If you are working with classes in PHP, you will sooner or later encounter inheritance, polymorphism, and serialization. The ability to use these three will help speed up your code writing. This article covers how to use them, and more.
</blockquote>
<p>
First off, <a href="http://www.devshed.com/c/a/PHP/Using-Inheritance-Polymorphism-and-Serialization-with-PHP-Classes/">they look at</a> inheritance and working with child classes before moving on to polymorphism (similar functionality, different objects), calling functions statically, and serializing objects to make passing them around much easier.
</p>]]></description>
      <pubDate>Tue, 15 Aug 2006 09:02:43 -0500</pubDate>
    </item>
  </channel>
</rss>
