2011年3月3日星期四

Site News: Blast from the Past - One Year Ago in PHP

Here's what was popular in the PHP community one year ago today:

Voices of the ElePHPant: Interview with Paul Jones


The Voices of the ElePHPant podcast has posted their latest episode today - an interview with Paul Jones.



Things they talk about include Paul's involvement with the Solar framework project and Cal asks him his "three questions":



  • What do you look for in a potential employer?
  • Why did you write Solar?
  • What advice do you have to Open Source projects to help foster community?


You can either listen via the in-page player or by downloading the mp3 directly.

2011年3月2日星期三

Community News: Latest Releases from PHPClasses.org

CodeIgniter Podcast: Episode #5: CodeIgniter Reactor, and Our Devious Plans


The CodeIgniter Podcast has (finally) released the next episode of their series - episode #5 where two Reactor Engineers (John Crepezzi and Kenny Katzgaru) talk about the project and some interesting recent additions.



Reposted from oconf.org, Reactor Engineers John Crepezzi and Kenny Katzgrau talk about their plans for CodeIgniter Reactor and talk about the idea of "sparks".


The sparks are self-contained, easy to install packages that bring additional functionality to the CodeIgniter core set of tools. You can either download the episode to listen or you can use the in-page player on the CodeIgniter Podcast site.

2011年3月1日星期二

Community News: Latest PECL Releases for 03.01.2011

Latest PECL Releases:

Gonzalo Ayuso's Blog: Watermarks in our images with PHP and mod_rewrite


Gonzalo Ayuso has a new tutorial posted to his site today showing how to use mod_rewrite and a little bit of PHP magic to watermark images without having to apply it to each one manually.



he idea is simple. Instead of opening directly the image, we are going to open a PHP script. This PHP script will open the original image file with imagecreatefromjpeg, add the footer and flush the new image to the browser with the properly headers.


Since it would be a lot of trouble (especially on a larger site) to have to rewrite all of the <img> tags to point to this new PHP script for adding the watermark, he opts for the .htaccess instead. It catches and rewrites the request to the "watermark.php" file which pulls in that image, watermarks it and pushes the result back out.