Re: Outputting multiple images
| From: | 1LT John W. Holmes | Date: | Thu, 07 Nov 2002 15:07:46 +0000 |
| Subject: | Re: Outputting multiple images | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123169@lists.php.net to get a copy of this message | ||
You're just doing a regular <img src='/foo/bar.jpg'>, right? Or do you have
a PHP script creating the image for you <img src='foo.php?id=1'>.
If it's the first one, header()s at the top of that page may prevent the
page and it's images from being cached. I'm not sure on the specifics of
what is/is not cached, sorry.
The random number solution may be the best in this case.
---John Holmes...
----- Original Message -----
From: <ed@home.homes2see.com>
To: "1LT John W. Holmes" <holmes072000@charter.net>
Cc: <php-general@lists.php.net>
Sent: Thursday, November 07, 2002 10:01 AM
Subject: Re: [PHP] Outputting multiple images
>
> But I don't think headers would work because I would be using it on a
> page that has already had output before the images would and also multiple
> images which means multiple header statements.
>
> Ed
>
>
> On Thu, 7 Nov 2002, 1LT John W. Holmes wrote:
>
> > > I've found a little problem that's not explicitly a php problem but I
was
> > > hoping that php may be the solution.
> > >
> > > Someone is shown an image and then asked if they wish to change that
> > > image. If they answer yes they are taken to an upload form and the new
> > > image is upload to the server overwitting the old image using the same
> > > filename. They are then taken to a page to show them the image they
just
> > > uploaded but the old image is diplayed from cache instead of the new
photo
> > > being shown. I'm using absolute path to the image on the server, not
URL.
> > >
> > > Is there a way to get the script to load in the new photos?
> >
> > I'm sure there are some no-cache header()s you can send. Take a look on
the
> > header() manual page, I think there are some examples there.
> >
> > www.php.net/header
> >
> > ---John Holmes...
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>