Cleaning the /tmp directory

James Sohr jms4 at PO.CWRU.EDU
Mon May 23 11:49:20 EDT 2005


I know I've said this before, but...

The easiest way to clean up all of the temporary images is to never
generate them in the first place, IMHO.

Just use the CGI feature of Mapserver along with the MODE=MAP cgi variable
setting to have MapServer spit out just a raw map image straight to the
browser.

You can then use regular HTML and/or Javascript to write the page that
will feature the map image.

This method writes no temp images to the servers drive, so there's nothing
to delete.  And best of all, it allows you to reload just the map image
(not the whole HTML page) when browsing, zooming, or querying.

I have a simple example set up at http://www.houseclick.com/map.htm

You can view the source code and see how easy it is...



More information about the mapserver-users mailing list