Re: Include after image or a way to reset header
| From: | Richard Lynch | Date: | Fri, 03 Feb 2006 21:26:58 +0000 |
| Subject: | Re: Include after image or a way to reset header | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229840@lists.php.net to get a copy of this message | ||
On Fri, February 3, 2006 10:15 am, tedd wrote:
> This is probably an obvious question, but after you create an image,
> how can you include another php script?
Your image is a single, atomic, non-divisible, non-extensible, object.
You should have one URL for the image:
http://example.com/buildimage.php
And you can embed that image URL into some HTML:
<html>
<body>
<img src="http://example.com/buildimage.php" />
</body>
</html>
But if you try to spit anything other than the image out with the
image, you just build a broken image, because it's no longer a valid
JPEG (or GIF or PNG or whatever).
--
Like Music?
http://l-i-e.com/artists.htm