<?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>Fri, 08 Aug 2008 16:18:49 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: Executing Destructors Manually in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9623</guid>
      <link>http://www.phpdeveloper.org/news/9623</link>
      <description><![CDATA[<p>
Finishing off their series on destructors in PHP5 applications today, DevShed has posted <a href="http://www.devshed.com/c/a/PHP/Executing-Destructors-Manually-in-PHP-5/">this new tutorial</a> showing how to manually run the destructors of your class (in case there's ever a need).
</p>
<blockquote>
In this final tutorial of the series I'm going to show you how to manually trigger a destructor, and in addition you'll learn how to emulate the behavior of this magic method when using PHP 4.
</blockquote>
<p>
They not only talk about how to <a href="http://www.devshed.com/c/a/PHP/Executing-Destructors-Manually-in-PHP-5/1/">call the destructor</a> manually but they also show how to call multiple destructors at the same time to destroy lots of objects at once. And, as promised, they include <a href="http://www.devshed.com/c/a/PHP/Executing-Destructors-Manually-in-PHP-5/3/">a method</a> for being able to use a destructor-like bit of functionality in a PHP4 app as well.
</p>]]></description>
      <pubDate>Wed, 13 Feb 2008 11:27:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ozh's Blog: PHP and GD - Emulate Gradient Fill]]></title>
      <guid>http://www.phpdeveloper.org/news/4840</guid>
      <link>http://www.phpdeveloper.org/news/4840</link>
      <description><![CDATA[On <i>Ozh</i>'s site, FrenchFragFactory.net, today, there's <a href="http://frenchfragfactory.net/ozh/my-projects/images-php-gd-gradient-fill/">this handy little post</a> dealing with the creation of gradients in PHP with the help of GD.
<p>
<quote>
<i>
Here is a small PHP function I wrote that emulates a gradient fill of an image.
<p>
Disclaimer : there are probably existing alternatives or classes, maybe in PEAR. I didn't check. I wanted to write a function myself, as part of my GD training grounds.
</i>
</quote>
<p>
<a href="http://frenchfragfactory.net/ozh/my-projects/images-php-gd-gradient-fill/">The script</a> is simple enough, and only uses four different variable values to make the patterns. There are a few examples of the end result in the form of a basic square output, but (as he mentions) it can be used just as easily in other situations. The source code is availible in either <a href="http://frenchfragfactory.net/ozh/go.php?http://frenchfragfactory.net/ozh/download/gd-gradient-fill.txt">plain-text</a> or in a <a href="http://frenchfragfactory.net/ozh/go.php?http://frenchfragfactory.net/ozh/download/gd-gradient-fill.php">.phps style file</a>.]]></description>
      <pubDate>Tue, 14 Feb 2006 06:54:19 -0600</pubDate>
    </item>
  </channel>
</rss>
