[H-GEN] Embedding images in HTTP response?
Martin Pool
mbp at linuxcare.com.au
Thu Feb 15 15:09:55 EST 2001
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Please observe the list's charter. ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]
On 16 Feb 2001, Michael Anthon <michael at anthon.net> wrote:
> I'm tossing around the idea of dynamically generating graphs using the
> GD funcitons in PHP. This all works quite nicely *but* there is at
> least 3 ways that I can think of for doing it, each with it's own set of
> problems.
#1 is the cleanest solution; #2 is a reasonable tradeoff if the
expense of the query justifies the complication of managing temporary
files. Remember that sometimes the browser may e.g. have been set not
to download images by default, and so there can be a significant delay
between loading the HTML and the image.
There are also tradeoffs between them:
* do #1 but cache the results of the most recent N queries of this sort
* do #2, but return the image through a PHP script that will recreate it if
it does not exist in the cache
#3 is not really possible in HTTP.
--
Martin Pool
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.
More information about the General
mailing list