"Norman Peelman" <np******@cfl.rr.com> wrote in message
news:ys*******************@twister.tampabay.rr.com ...
I have a script that outputs images directly using the 'image'
functions. I have googled quite a bit but cannot seem to find the correct method of
sending headers to keep the images from being cached... these are dynamic
images.
Norm
It seems my second post got lost somewhere - here it is again. Let's say I
have a HTML file like so:
<HTML>
<HEAD>
<TITLE>Image Test</TITLE>
</HEAD>
<BODY>
<IMG SRC="http://www.mydomain.com/myscript.php?img=21">
<IMG SRC="http://www.mydomain.com/myscript.php?img=21">
<IMG SRC="http://www.mydomain.com/myscript.php?img=21">
<IMG SRC="http://www.mydomain.com/myscript.php?img=21">
</BODY>
</HTML>
---
Now, 'myscript.php' is coded such that depending on the value of 'img' it
can return a random image (using the PHP/GD 'image' functions). I would
like to be able to have the above HTML page display four random images upon
each view/refresh. I do not have the ability to alter the SRC attribute as
it may appear only once or ten times in a single web page, I don't know.
Currently I do see random images upon each refresh but all four images
displayed are the same. Is there no headers that I can send that would tell
the browser to ask for the <IMG> each time it encounters it.
So, in short, I know that my script works fine. There just seems to be the
issue of not being able to tell the browser to send a seperate request for
each <IMG> encountered. That is my desired effect.
Thank you,
Norm