hidden variable settings

David Fawcett David.Fawcett at STATE.MN.US
Wed Sep 29 12:41:04 EDT 2004


Manjiri,

the tmp directory is a directory that you have to set up on your server
and your Web server needs to have read and write access to the
directory.  It doesn't have to be called 'tmp'.  It should be in your
Web root because it also needs to be referenced as a URL.

The variable 'map_web_imagepath' is used to set the IMAGEPATH value in
the WEB block of your MAP file.  There is more documentation on that
here:  http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#web .
It should contain the path to the 'tmp' directory that you want
MapServer to write the map images to.  (e.g. '/usr/local/www/docs/tmp/'
on 'NIX or 'c:\apache\htdocs\tmp\' on Windows.)

Similarly, 'map_web_imageurl' refers to IMAGEURL in the Web block. (see
above documentation URL)  It refers to the URL to the same 'tmp'
directory above, but as a URL, not a path.  (e.g.
'http://my.site.com/tmp/')  For most sites, like the demo you are using,
it is expressed as a relative URL  (e.g. '/tmp/')

Good Luck,

David.


David J. Fawcett
MN Office of Environmental Assistance

>>> Manjiri Andhare <manjiri_r at HOTMAIL.COM> 9/29/2004 10:59:39 AM >>>
Hello!!
I'm trying to run the demo application which is on the
http://mapserver.gis.umn.edu/dload.html . I have extracted the
workshop.exe, and have created a folder under cgi-bin directory. In
the
readme file of workshop demo, they have stated to change the hidden
variable settings in index.htm file, i'm not getting where to set the
hidden variables for following 2 things:
<input type="hidden" name="map_web_imagepath"
value="/usr/local/www/docs/tmp/">
      <input type="hidden" name="map_web_imageurl" value="/tmp/">
I don't see any tmp directory in the workshop(, though there is a
templets
directory), is this the same?
Manjiri



More information about the mapserver-users mailing list