You're outputting a blank PNG image, in binary form. In order to display it (not that you'd see anything since it's blank), you need to output a Content-Type header first, like so:

header("Content-Type: image/png");

THis will instruct the browser to treat the incoming data as image data.

HTH.

Ignacio Correa wrote:

Hi, I´m new in PHP+GD.
I have install all library (PHP4-gd2, libgd2, etc, etc, etc.) and when I use gd 
functions no errors or warning are displayed, but when I use imagepng() or imagejpeg() 
no images are displayed in my browser, and in this place extrage symbols are displayed.
You can see my bad result here: http://www.drivingconsultancy.com/ide/testi.php

If somebody can helpme, I´ll be very thanks

(sorry, my eglish isn´t good, I´m from Argentine)

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to