Jump to content

[SOLVED] GD and output - header...


Isterklister

Recommended Posts

Hello,

I have a small problem.

 

I have a php file showing text and images. Now I will have two images merged into one with GD and showned in this page. Here comes my small problem - the line:

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

Where should I put it? If I put it in my head instead of:

  header ("Content-type: text/html; charset=iso-8859-1");

the page cannot show the ordinary text and pictures.

 

Thanks

Isterklister

Link to comment
https://forums.phpfreaks.com/topic/154953-solved-gd-and-output-header/
Share on other sites

you have to create an image specific file... that contains the header defining it as an image... 100% seperate from your normal html file...

 

hence you'd draw to it as

<img src="image.php">

in which image.php is where you draw your php image, and set that header.

 

:D

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.