in reply to GD graphs and CGI

Look s like your content-type is wrong.
Add content-type: image/png to your headers.
Boris