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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.