in reply to Re^2: Using GD on MS Windows
in thread Using GD on MS Windows

I don't think your reply, at Re^2: Using GD on MS Windows , follows either from your original post, nor from the excellent answer, above.

Just what is it that you want to achieve?
Guesses:

If the former, you have the answer above, and came close with your adaptation of the original sample code (which could be edited to specify a file write, rather than output to STDPUT which must then be redirected. If the latter, you may which to ppm -s for the various Graph:: modules.