PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 301 to 304 of 304

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

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...

Community News: Latest PECL Releases for 03.01.2011

Community News: Latest PECL Releases for 03.01.2011
Latest PECL Releases: tokyo_tyrant 0.6.0 CUBRID 8.3.1.0005

Using OpenStreetMap tiles with Flickr

Using OpenStreetMap tiles with Flickr
Using OpenStreetMap tiles with Flickr London, UK Tuesday, March 1st 2011, 09:20 GMT I like taking pictures, and I usually take a GPS so that I can place them on a map on my Flickr page. On my last excursion however, the battery of my GPS had died, so I did not have location information available to store in my pictures' EXIF headers. Flickr can use the EXIF headers to then show the images on the map. Because I did not have the location information to automatically place my pictures on the map, I...

Dealing with MySQL Gone Away in Zend Framework

Dealing with MySQL Gone Away in Zend Framework
I wrote recently about having gearman in my application, however I have been seeing problems with the long-running PHP worker scripts. My logs had entries like this: SQLSTATE[HY000]: General error: 2006 MySQL server has gone awayA The worker is a Zend Framework application, run from the CLI, and it seemed like the Zend_Db_Adapter had no way of knowing when MySQL had let go of its end of the connection. I tried a few different things, including Zend_Db_Adapter::getConnection(), but without success - until...