<?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, 12 Oct 2008 13:24:18 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Mikko Koppanen: Requested examples: Animating GIF Images]]></title>
      <guid>http://www.phpdeveloper.org/news/8816</guid>
      <link>http://www.phpdeveloper.org/news/8816</link>
      <description><![CDATA[<p>
At the request of another developer, <i>Mikko Koppanen</i> has <a href="http://valokuva.org/?p=46">written up a post</a> for his blog today showing how to create animated GIFs in PHP with Imagick.
</p>
<blockquote>
Today's example was requested by a user called Devo. This example illustrates making an animated GIF image by creating the frames from scratch. It's been so long since I've really drawn anything so I decided to use text as the base for this animation.
</blockquote>
<p>
<a href="http://valokuva.org/?p=46">His example</a> ends up as a string ("Hello World") that's animated to show one more letter at a time as each frame loads.
</p>]]></description>
      <pubDate>Wed, 10 Oct 2007 09:32:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Creating Image Streams from Existing Graphics with the GD Library in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8487</guid>
      <link>http://www.phpdeveloper.org/news/8487</link>
      <description><![CDATA[<p>
DevShed continues its look at using the GD graphics library in PHP with <a href="http://www.devshed.com/c/a/PHP/Creating-Image-Streams-from-Existing-Graphics-with-the-GD-Library-in-PHP/">the second part</a> of the tutorial series, this time focusing on the creation of images from existing images (and their streams).
</p>
<blockquote>
As I stated at the end of the previous article of this series, the GD extension comes packaged with many other useful functions, which indeed deserve a close and detailed look. Thus, in this second tutorial I'll show you how to create different types of image streams from existing graphics, but in this case limiting the process to building GIF, JPG and PNG images.
</blockquote>
<p>
They work through each of the types (<a href="http://www.devshed.com/c/a/PHP/Creating-Image-Streams-from-Existing-Graphics-with-the-GD-Library-in-PHP/1/">GIF</a>, <a href="http://www.devshed.com/c/a/PHP/Creating-Image-Streams-from-Existing-Graphics-with-the-GD-Library-in-PHP/2/">JPG</a> and <a href="http://www.devshed.com/c/a/PHP/Creating-Image-Streams-from-Existing-Graphics-with-the-GD-Library-in-PHP/3/">PNG</a>) creating an new one from a previous "clouds" image of the same type (a GIF out of a GIF, a JPG from a JPG, etc).
</p>]]></description>
      <pubDate>Mon, 20 Aug 2007 11:04:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Builder.com.au: PHP exploit code plants itself in GIF]]></title>
      <guid>http://www.phpdeveloper.org/news/8107</guid>
      <link>http://www.phpdeveloper.org/news/8107</link>
      <description><![CDATA[<p>
Builder.com.au has a <a href="http://www.builderau.com.au/news/soa/PHP-exploit-code-plants-itself-in-GIF/0,339028227,339278850,00.htm">new article</a> today about the recent image issue - the PHP code embedded inside the GIF - that's come up on several sites.
</p>
<blockquote>
The exploit code slipped through the site's defenses with the aid of a legitimate image at the beginning of the file, <a href="http://isc2.sans.org/diary.html?storyid=2997">according to a blog post</a> on the Sans Institutes's Internet Storm Center. [...] Malicious attackers planted PHP coded exploit script within an image file. PHP is often used as a programming language to create dynamic Web sites.
</blockquote>
<p>
The article reports that, while this exploit hasn't happened much, the occurrences of it's use are growing with victims in a wide range of classifications - from small personal sites out to a certain major image hosting site. This same issue was discussed <a href="http://www.phpdeveloper.org/news/8088">here</a> on the PHPClasses.org website as well.
</p>]]></description>
      <pubDate>Fri, 22 Jun 2007 12:41:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org: PHP security exploit with GIF images]]></title>
      <guid>http://www.phpdeveloper.org/news/8088</guid>
      <link>http://www.phpdeveloper.org/news/8088</link>
      <description><![CDATA[<p>
On the PHPClasses site today, there's <a href="http://www.phpclasses.org/blog/post/67-PHP-security-exploit-with-GIF-images.html">a new post</a> that points out an issue that could happen with dyanamic GIF creation in a PHP script leading to a security exploit.
</p>
<p>
<i>Manuel Lemos</i> writes:
</p>
<blockquote>
The problem that was discovered is that you can insert PHP code in the middle of a GIF image. That would not be a problem if it was not for the insecure ways some developers use to serve images upload by their users. Usually, uploaded files are moved to a given directory. If the site then serves the images directly from that directory and preserve the original file name, the site may be open for security exploits.
</blockquote>
<p>
The problem comes when a user decides to upload an "image" file that's actually a PHP script (ending in PHP even) to the remote system. When this is outputted, it's placed inside the image tag and executed with each page load. <i>Manuel</i> <a href="http://www.phpclasses.org/blog/post/67-PHP-security-exploit-with-GIF-images.html">offers a suggestion</a> to prevent the issue - protecting the images directory and using readfile to grab the contents of the file to output rather than just a straight echo.
</p>]]></description>
      <pubDate>Wed, 20 Jun 2007 12:57:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org: CAPTCHA harder to break using animations]]></title>
      <guid>http://www.phpdeveloper.org/news/6843</guid>
      <link>http://www.phpdeveloper.org/news/6843</link>
      <description><![CDATA[<p>
PHPClasses.org is spotlighting another package from their site today - this time it's a <a href="http://www.phpclasses.org/animated_captcha">CAPTCHA class</a> that takes things a step further and introduces animation into the mix to make it even harder for bots to get through.
</p>
<blockquote>
<p>Laszlo Zsidi is a PHP Web developer that has written an harder to break CAPTCHA solution. It consists in generating animated GIF images that exhibit the validation text.
</p>
<p>
Since the text never appears all at once in each of the animated frames, this solution certainly raises the bar in terms of difficulty for the robots to guess the validation text, making it very hard to defeat, if possible at all.
</p>
</blockquote>
<p>
You can check out the <a href="http://www.phpclasses.org/browse/package/3423.html">class here</a>, including a sample animated <a href="http://www.phpclasses.org/browse/file/16277.html">gif file</a> and a download of everything you'll need to get started.
</p>]]></description>
      <pubDate>Thu, 07 Dec 2006 08:28:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org: 3D graphics in pure PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6665</guid>
      <link>http://www.phpdeveloper.org/news/6665</link>
      <description><![CDATA[<p>
As spotlighted by the folks over on PHPClasses.org, there's a developer, <i>L&aacute;szl&oacute; Zsidi</i>, who has contributed <a href="http://www.phpclasses.org/browse/author/283569.html">several packages</a> to the repository - including some that work to create 3D images with just the built-in functions PHP provides.
</p>
<blockquote>
He has developed several pure PHP components that implement impressive 3D animated graphics, like a 3D objects rendering engine, emulate a waving flag or the reflex of an image near a lake. The generated frames are combined into a single animated GIF with another pure PHP component also written by L&aacute;szl&oacute;. All these components were nominated to the PHP Programming Innovation Award for the evident creativity, demonstrating that PHP can be used for non-trivial software applications.
</blockquote>
<p>
Some of the libraries in the listing include:
<ul>
<li><a href="http://www.phpclasses.org/browse/package/3234.html">Animated GIF into images</a>
<li><a href="http://www.phpclasses.org/browse/package/3157.html">Image Flag Effect</a>
<li><a href="http://www.phpclasses.org/browse/package/3355.html">Text 3D</a>
<li><a href="http://www.phpclasses.org/browse/package/3358.html">FXLake effect</a>
<li><a href="http://www.phpclasses.org/browse/package/3364.html">Convex 3D</a>
</ul>
</p>]]></description>
      <pubDate>Wed, 08 Nov 2006 08:13:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Richard Davey's Blog: Easy Reflections]]></title>
      <guid>http://www.phpdeveloper.org/news/6578</guid>
      <link>http://www.phpdeveloper.org/news/6578</link>
      <description><![CDATA[<p>
On his blog today, <i>Richard Davey</i> shares a <a href="http://www.corephp.co.uk/archives/31-Easy-Reflections.html">bit of code</a> that will take an image and make a "nicely formatted reflection" of it automatically.
</p>
<blockquote>
You can use it to give your site that 'iTunes / Apple' look if you so desire. I created it to make image uploads to a site I run look that little bit nicer, so figured I would share it with you all.
</blockquote>
<p>
The script, Easy Reflections, can be <a href="http://reflection.corephp.co.uk/">grabbed from here</a> along with the installation and use instructions (including the values for the six parameters to change the image).
</p>]]></description>
      <pubDate>Wed, 25 Oct 2006 16:34:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Technobabbler.com: making a radar loop with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6221</guid>
      <link>http://www.phpdeveloper.org/news/6221</link>
      <description><![CDATA[<p>
On the Technobabbler blog, there's <a href="http://technobabbler.com/?p=12">a quick look</a> at their creation of a (weather) radar loop they could view on their cell phone.
</p>
<blockquote>
I used the great mobile site from the NWS, but it still didn't give me the effect I wanted. And hey, I'm already <a href="http://technobabbler.com/?p=11">filling a database</a> with weather observations and radar images! So I decided to see what it would take to make a custom radar loop that I could get to at any given moment. The Treo can display animated gif files, so that seemed like the most efficient solution. The question is, how do we create an animated gif using PHP?
</blockquote>
<p>
To answer the question, he found <a href="http://www.phpclasses.org/browse/package/3163.html">this script</a> ("GIF images into animated GIF with native PHP class") and used it to create a simple script to grab the GIF images and combine them into a single animated image suitable for viewing in any browser. He includes the script used to generate it as well as an example of the result and how it looks on the phone.
</p>]]></description>
      <pubDate>Thu, 07 Sep 2006 13:36:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Cool Image Thumbnail Class]]></title>
      <guid>http://www.phpdeveloper.org/news/6176</guid>
      <link>http://www.phpdeveloper.org/news/6176</link>
      <description><![CDATA[<p>
On the Zend Developer Zone, they <a href="http://devzone.zend.com/node/view/id/869">point out</a> a handy little image manipulation class they've come across - GenXDesign's <a href="http://www.gen-x-design.com/projects/php-thumbnailer-class/">PHP Thumbnail Class</a> - as well as some details about it.
</p>
<blockquote>
<p>
I've seen a lot of implementations of thumb nail functionality in PHP, I've even written a couple of my own. I like this class thought. In looking over the code the first thing you notice is that it's clean code. I don't mean they use the latest whiz-bang method to cshave a few keystrokes. 
</p>
<p>
This code is simple, nicely formatted and easy to read through. My only real problem with the code itself is that it is not terribly well documented. That can be forgiven since easy to read.
</p>
</blockquote>
<p>
<i>Cal</i> talks about some of the <a href="http://devzone.zend.com/node/view/id/869">other features</a> of the class, including that it works with gif/jpeg/png images, makes it easy to set the quality of the jpgs, and makes it easy to display the dynamic images directly to the browser. Check out <a href="http://www.gen-x-design.com/demo_thumbnail.php">the demo</a> for more.
</p>]]></description>
      <pubDate>Wed, 30 Aug 2006 07:41:58 -0500</pubDate>
    </item>
  </channel>
</rss>
