Thanks for the quick reply,
When you run this function? after each requests ? but if so, the client is able
to read the image before you delete it ?
best regards,
Valerio
--- Gio 23/10/08, Venkat Rao Tammineni <[EMAIL PROTECTED]> ha scritto:
Da: Venkat Rao Tammineni <[EMAIL PROTECTED]>
Oggetto: RE: [mapserver-users] disk space
A: [EMAIL PROTECTED], "'mapserver'" <mapserver-users@lists.osgeo.org>
Data: Giovedì 23 ottobre 2008, 13:05
Hi,
Why don’t you write method for deleting png .mapserver will
take care about creating an image.I have C# code.
The below code will delete all the files form OutputDIR.
I hope it helps you. Or At least you can get some idea about
your task.
Thanks and Regards
Venkat.
public void Deleteimages()
{
try
{
foreach
(string f in
System.IO.Directory.GetFiles(OutputDir))
{
System.IO.File.Delete(f);
}
}
catch (Exception exp)
{ }
}
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of valerio
vianello
Sent: Thursday, October 23, 2008 4:25 PM
To: mapserver
Subject: [mapserver-users] disk space
Dear all,
I have a demo where I'm using mapserver cgi interface. I'm using the browse
mode so each time mapserver receive a request, it creates a temporary png on
the server filesystem.
Do you know how and when i can delete those temporary image since they are
used only one time ?
An attacker could easily fill all the server HD locking all the
system.
Thanks
Valerio
Scopri
il Blog
di Yahoo! Mail: trucchi, novità, consigli... e scrivi la tua opinione!
Scopri il blog di Yahoo! Mail:
Trucchi, novità e scrivi la tua opinione.
http://www.ymailblogit.com/blog
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users