Jump to content

Can't display an image with PHP


thors1982

Recommended Posts

I am very new to PHP I am just trying to learn it... I have a C++ background

But, I can not get a PNG image to display after i modify it.

For example... this code does not display a image it displays ASCII characters instead

$landscapefile = 'landscape.png';
$landscapeimage = imagecreatefrompng($landscapefile);
imagepng($landscapeimage);


Granted this is not the full extent of what I am doing, but it causes the same problem
Aslo, i checked my phpinfo and GD support is enabled as well as PNG support.
Link to comment
https://forums.phpfreaks.com/topic/36384-cant-display-an-image-with-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.