|
Posted by Andrea Scharfe on 04/30/07 09:00
On 30 Apr., 10:53, Martin Mandl - m2m tech support
<martin.ma...@gmail.com> wrote:
> On Apr 30, 10:24 am, Andrea Scharfe <schm...@gmail.com> 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
[Back to original message]
|