I'm currently discovering GD in PHP, having fun with it in a small project (and having some great ambitions in another future great project, but time will tell :)
Here is a small function I wrote, designed to create gradient fills of any kind (vertical, horizontal, elliptic, rectangular or even diamond-shaped). Be it useful to one person and I'll be happy for the rest of the, errr… week. GD Gradient Fill.