<?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, 19 May 2013 21:49:45 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Wan Qi Chen: Background jobs with php and resque (Series)]]></title>
      <guid>http://www.phpdeveloper.org/news/18581</guid>
      <link>http://www.phpdeveloper.org/news/18581</link>
      <description><![CDATA[<p>
<i>Wan Qi Chen</i> has started a new series that looks at using PHP port of the <a href="https://github.com/defunkt/resque">resque</a> (a Ruby based tool) to do background processing for parts of his PHP applications - <a href="https://github.com/chrisboulton/php-resque">PHP-Resque</a>. So far, there's three parts to the series (with one more on the way):
</p>
<ul>
<li><a href="http://www.kamisama.me/2012/10/09/background-jobs-with-php-and-resque-part-1-introduction/">Part one</a> introduces the idea behind working with a background queue, the general workflow a process would follow and some of the benefits/drawbacks of using them.
<lI>In <a href="http://www.kamisama.me/2012/10/09/background-jobs-with-php-and-resque-part-2-queue-system/">part two</a> he gets more into the actual queue system and discusses the concept of a "job".
<li>The <a href="http://www.kamisama.me/2012/10/09/background-jobs-with-php-and-resque-part-3-installation/">third part</a> gets more into the implementation and helps you get the <a href="https://github.com/chrisboulton/php-resque">PHP-Resque</a>, <a href="https://github.com/nicolasff/phpredis">predis extension</a> and the <a href="http://www.php.net/manual/en/book.pcntl.php">process control extension</a> installed.
</ul>
<p>
The fourth part of the series (pending) will get into the actual code to implement this system you've job installed.
</p>]]></description>
      <pubDate>Wed, 10 Oct 2012 10:13:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org Blog: Throttling Background Tasks: Unusual Site Speedup Techniques: Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/15334</guid>
      <link>http://www.phpdeveloper.org/news/15334</link>
      <description><![CDATA[<p>
On the PHPClasses.org blog <i>Manuel Lemos</i> has <a href="http://www.phpclasses.org/blog/post/132-Accelerate-Page-Accesses-Throttling-Background-Tasks-Unusual-Site-Speedup-Techniques-Part-2.html">posted part two</a> of his look at techniques to help speed up your site - a few things that you maybe hadn't thought of before.
</p>
<blockquote>
In the <a href="http://www.phpclasses.org/blog/post/131-Accelerate-Page-Loading-Unusual-Site-Speedup-Techniques-Part-1.html">previous article</a> I talked about one important factor that often seriously affects the user perception of the speed of a site, which is the presence of content from external sites that slows down the load of pages, such as advertising and widgets. In that article I presented a technique that I am using to make external content not affect the user perception of the site speed. In this article I am addressing another factor that may also affect the user perception of site speed, but this time is related to aspects of the server side environment.
</blockquote>
<p>
In this article he looks at things like other server-side background processes, throttling their CPU usage, throttling PHP's CPU usage and the use of <a href="http://www.phpclasses.org/system-monitor">a monitoring class</a> to help you and your applications (and sysadmins) stay on top of what's happening with the server.
</p>]]></description>
      <pubDate>Tue, 26 Oct 2010 09:17:55 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Steponas Kazakevicius' Blog: Interruptable file download]]></title>
      <guid>http://www.phpdeveloper.org/news/15116</guid>
      <link>http://www.phpdeveloper.org/news/15116</link>
      <description><![CDATA[<p>
<i>Steponas Kazakevicius</i> has written up <a href="http://itworks.lt/blog/2010/09/interruptable-file-download/">a new tutorial</a> about file downloading and, more specifically, making an download tool that can handle interruptions in mid-stream (elegantly).
</p>
<blockquote>
Have you ever been to a website that offers downloads of stuff? And while you are waiting for the download, there are lots of ads around? Sure you have. I have too. The last day I was downloading stuff. An idea came to my head. Was there a site which required to stay and watch the ads while you are downloading? Didn't see one. Is that technically possible? Sure. I wanted to show how. So I made a small web app for that.
</blockquote>
<p>
His application (live <a href="http://itworks.lt/code/adviewdownload/">demo</a> or <a href="http://itworks.lt/code/adviewdownload/adviewdownload_v1.zip">download</a> available) submits the user upload in the background so that, if the user decides to cancel it, they can at any time and move on immediately.
</p>]]></description>
      <pubDate>Mon, 13 Sep 2010 10:06:32 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ralph Schinlder's Blog: PHPundamentals Series: A Background on Statics (Part 1 on Statics)]]></title>
      <guid>http://www.phpdeveloper.org/news/14477</guid>
      <link>http://www.phpdeveloper.org/news/14477</link>
      <description><![CDATA[<p>
<i>Ralph Schindler</i> has started up a new series of posts to his blog with <a href="http://ralphschindler.com/2010/05/06/phpundamentals-series-a-background-on-statics-part-1-on-statics">this first article</a> looking one of the fundamentals of PHP - statics.
</p>
<blockquote>
Static class members (from here on called simply, 'statics') in PHP conjure both the best and worst in developers for a variety of reasons. In part 1 of this series of articles on statics, we'll explore some background to get a better understanding of statics in PHP.
</blockquote>
<p>
He covers some of the places that the idea of "static" came from and how its used in a few other languages (including ones PHP borrowed some of its ideas from). He uses a few analogies to illustrate what statics are and even includes some illustrations of how the static scope of PHP compares with other languages (like Java and .NET). 
</p>]]></description>
      <pubDate>Fri, 07 May 2010 09:47:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Andre Liem's Blog: 5 tips and tools to optimize your php application - Part 1 simple]]></title>
      <guid>http://www.phpdeveloper.org/news/11490</guid>
      <link>http://www.phpdeveloper.org/news/11490</link>
      <description><![CDATA[<p>
<i>Andre Liem</i> has posted <a href="http://blog.midstride.com/2008/12/01/5-tips-and-tools-to-optimize-your-php-application-part-1-simple/">five simple tips</a> (part one of a two-part series) on ways to optimize your PHP applications.
</p>
<blockquote>
After experiencing some issues with an application running the Zend Framework, I realized there were a lot of things I was not doing to optimize my application.  There are simple and more complex actions you can take to speed up your application.  Since time is precious, and developers with an expertise on optimization are not always available, I've split this post into two sections (simple and more advanced).  This post focuses on the simple part.
</blockquote>
<p>
His simpler suggestions include using the YSlow extension in Firefox, minification of Javascript and CSS, merging CSS/JS requests, using gzip and avoiding CSS background images.
</p>]]></description>
      <pubDate>Tue, 02 Dec 2008 15:31:07 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Running background processes in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10636</guid>
      <link>http://www.phpdeveloper.org/news/10636</link>
      <description><![CDATA[<p>
New on the Developer Tutorials blog today is <a href="http://www.developertutorials.com/blog/php/running-background-processes-in-php-349/">this look</a> at handling background processes from your PHP script:
</p>
<blockquote>
You've checked and double checked the integrity of user input, and you're doing some serious processing. There's only one problem: it's too slow. There's a simple solution: forking your processing script, and running the code as a background process asynchronously. It can email your user when it's done: they'll wait. In this tutorial, I'll show you how to get started with background processes in PHP.
</blockquote>
<p>
<i>Akash</i> gives examples of the three keys to background processes - starting the script via an exec, talking to the process by passing additional parameters and including code to monitor the state of the background process via something like a MySQL "sessions" table that the script writes to.
</p>]]></description>
      <pubDate>Fri, 18 Jul 2008 11:18:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Decorators with Zend_Form]]></title>
      <guid>http://www.phpdeveloper.org/news/10112</guid>
      <link>http://www.phpdeveloper.org/news/10112</link>
      <description><![CDATA[<p>
On the Zend Developer Zone there's a <a href="http://devzone.zend.com/article/3450-Decorators-with-Zend_Form">new tutorial</a> (by <i>Matthew Weier O'Phinney</i>) covering the use of decorators with the Zend_Form component of the Zend Framework.
</p>
<blockquote>
One point of flexibility [Zend_Form] offers has proved to be a pain point for many developers: decorators. This tutorial aims to shed some light on decorators, as well as provide strategies for creating your own decorators and combining them in creative ways to customize the output your forms generate.
</blockquote>
<p>
<i>Matthew</i> <a href="http://devzone.zend.com/article/3450-Decorators-with-Zend_Form">starts</a> with a little background behind the component to help you find your way around. Building on this, he shows how to use some standard output decorators and how to create decorators of your own. His example shows how to create a set of grouped checkboxes.
</p>]]></description>
      <pubDate>Mon, 05 May 2008 12:57:34 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Mikko Koppanen's Blog: Fill patterns]]></title>
      <guid>http://www.phpdeveloper.org/news/10069</guid>
      <link>http://www.phpdeveloper.org/news/10069</link>
      <description><![CDATA[<p>
<i>Mikko Koppanen</i> has <a href="http://valokuva.org/?p=102">a quick post</a> today showing how to use PHP and Imagick to create an image of text filled with another image layer behind it:
</p>
<blockquote>
The fill pattern is used to annotate text but the named pattern could also be used to fill any shapes that allow fill to be specified (include circles, ellipses, rectangles, polygons etc etc).
</blockquote>
<p>
<a href="http://valokuva.org/?p=102">His example</a> is pretty simple (with a "Hello World!" output) that pulls in the background image, creates the composite layer over it, adds the text to it and sets the fill to the background image's layer. The whole this is wrapped up and output as <a href="http://valokuva.org/wp-content/uploads/2008/04/patternphp1.png">a PNG file</a>.
</p>]]></description>
      <pubDate>Tue, 29 Apr 2008 15:24:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Mikko Koppanen's Blog: Trimming an image]]></title>
      <guid>http://www.phpdeveloper.org/news/8965</guid>
      <link>http://www.phpdeveloper.org/news/8965</link>
      <description><![CDATA[<p>
<i>Mikko Koppanen</i> shows how, in his <a href="http://valokuva.org/?p=69">latest blog post</a>, to take an image and trim it down with Imagick to get rid of extra surrounding background information.
</p>
<blockquote>
<p>
Especially product images usually "suffer" from this issue; the product itself is composited on a white background and there are large areas of white around the object.
</p>
<p>
This is a simple example to demonstrate how to easily trim the areas off the image and only display the parts where the object lies.
</p>
</blockquote>
<p>
His <a href="http://valokuva.org/?p=69">example code</a>, a quick 16 line affair, takes in the test image, looks for a RGB value given and uses the built-in trimImage function to reduce its size.
</p>]]></description>
      <pubDate>Fri, 02 Nov 2007 12:58:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Mikko Koppanen's Blog: Choosing watermark color based on the background luminosity]]></title>
      <guid>http://www.phpdeveloper.org/news/8835</guid>
      <link>http://www.phpdeveloper.org/news/8835</link>
      <description><![CDATA[<p>
<i>Mikko Koppanen</i> has <a href="http://valokuva.org/?p=59">another blog entry</a> posted dealing with image manipulation with PHP and Imagick, this time it's a cool little script that lets you pick your watermark's color based on the image's background luminosity.
</p>
<blockquote>
Usually images are watermarked using a predefined color (let's say for example "white"). How well does this actually work when you're doing the watermark on a light or even a white image? The answer is simple: not very well.
</blockquote>
<p>
His <a href="http://valokuva.org/?p=59">example</a> uses the ImagickPixelIterator to check the luminosity of the background and assigns the text a value between black and white according to the background. Complete code with usage and examples of the resulting images are included.
</p>]]></description>
      <pubDate>Sat, 13 Oct 2007 16:04:00 -0500</pubDate>
    </item>
  </channel>
</rss>
