Re: Delete temporary images after loading website
- From: Andrea Scharfe <schmedi@xxxxxxxxx>
- Date: 30 Apr 2007 02:00:01 -0700
On 30 Apr., 10:53, Martin Mandl - m2m tech support
<martin.ma...@xxxxxxxxx> wrote:
On Apr 30, 10:24 am, Andrea Scharfe <schm...@xxxxxxxxx> wrote:
I am writing a PHP script which generates some charts using gnuplot.
This generates quite a large number of temporary image files. My
problem is that I do not know how to delete these images after they
have been loaded and are already displayed at the website.
Everything I have tried so far resulted in that the images were not
displayed at all.
Dear Andrea,
why don't you delete the files the next time you call the script
before you create new temporary files?
Good luck
Martin
------------------------------------------------
online accounting on bash bases
Online Einnahmen-Ausgaben-Rechnunghttp://www.ea-geier.at
------------------------------------------------
m2m server software gmbhhttp://www.m2m.at
Hi Martin,
thanks for your reply. The problem is, that the script is used for a
website which might be accessed by more than one person at the same
time. So it might happen that while one person is waiting for the
charts to be displayed, the next user accesses the website and deletes
the files the other one is waiting for.
Maybe I could include a check for timestamps and delete all files that
are older than 5 minutes or something...
Thank you!
Andrea
.
- References:
- Delete temporary images after loading website
- From: Andrea Scharfe
- Re: Delete temporary images after loading website
- From: Martin Mandl - m2m tech support
- Delete temporary images after loading website
- Prev by Date: Database server auto-close
- Next by Date: Re: Manipulating binary data
- Previous by thread: Re: Delete temporary images after loading website
- Next by thread: Re: Delete temporary images after loading website
- Index(es):
Relevant Pages
|