That looks like line 22... Why don't you just make a variable? $ip = "Your IP address is: $REMOTE_ADDR"; ImageTTFText ($image, 8, 0, 10, 17, $white, $font, $ip); That should work... BTW, if you're using Windows to host it, the path to the font should be /WINDOWS/Fonts/Arial.ttf or whatever font you're using!