Category Archives: php

Java GIF Adventure

I was recently working on a project that generated PNGs using Java from a Java2D canvas. Along the way someone wanted to change the graphics to have transparent backgrounds and because they were needed for display on the web I knew this would become an issue because IE doesn't support transparency in PNGs out of [...]
Posted in php | 1 Comment

Akismet spam graphs with PHP RRD

After reading a post on hacking Akismet to add graphs I decided I liked the idea but I didn't want to store the data in a database. It seemed like it would be better to store it using a RRD and then use the PHP RRD library. So after a little hacking I've created a [...]
Also posted in utilities | 1 Comment

How to Create a Streaming Flash Video Player Using Ming PHP or Ruby

I mentioned in creating Flash videos using FFMpeg that you could use Ming to create your own Flash video player. I've added a patch to the ruby -ming extension for video streaming so now it is possible to create a streaming player with both PHP and Ruby using their Ming extensions. The following examples show [...]
Also posted in ruby, utilities | 4 Comments

PHP ImageMagick MagickWand Examples

A while back I explained how to compile the ImageMagick extension for PHP and this past week I got around to creating some example code to make some of the command line examples I have in ImageMagick command line examples part 1 and ImageMagick command line examples part 2.
Posted in php | 2 Comments

How to compile ImageMagick for PHP by hand

Some time ago I was looking at how to re-size uploaded images in a way that looks good using PHP. I was impressed that when I uploaded a 4M picture to flickr it managed to re-size and compress it into a smaller version that looked correct. I knew they weren't just resizing it so I [...]
Also posted in web design | 3 Comments

Lighty XCache for PHP

I noticed Lighty XCache when it came out a few months ago. I like EAccelerator myself but now there is an admin console for XCache that looks pretty nice.
Posted in php | Leave a comment

How to map URLs with PHP and lighttpd

On a number of occasions I've wanted to map a section of a site hosted with lighttpd onto a single PHP file that could then be used as a controller. Here is how I go about doing it. The first part is to re-write the given part of the site to the PHP file you [...]
Also posted in system administration | Leave a comment

PHP RRDTool tutorial

On a number of occasions I've used RRDTool to graph network traffic and the like. A few years ago when I started using cacti I started wondering how to make the graphs myself. Creating the graphs on the command line isn't that hard once you know how to set things up and it turns out [...]
Also posted in system administration | 23 Comments

How to build the PHP rrdtool extension by hand

I think by now most sysadmin types know about rrdtool and the nice graphs it makes. I recently wanted to create some graphs by hand using PHP so I turned to the php-rrdtool extension. I found that it takes a little work to get it to compile but that could be because I'm not constantly [...]
Also posted in linux, system administration | 15 Comments