hidden variable settings

Manjiri Andhare manjiri_r at HOTMAIL.COM
Wed Sep 29 14:16:04 EDT 2004


David,
Thanks for providing me with the information about creating a directory for
writing temporary files. I have created the directory
C:/Inetpub/wwwroot/MapServer/Docs/tmp.
I have given IIS rights to read and write to these directories.
And i edited the hidden variables as:

<!-- EDIT THESE HIDDEN VARIABLES -->
      <input type="hidden"
name="map"value="c:/Inetpub/wwwroot/MapServer/itasca.map">
      <input
type="hidden"name="program"value="c:/Inetpub/wwwroot/MapServer/cgi-
bin/mapserv">
      <input type="hidden" name="root" value="c:/Inetpub/wwwroot/MapServer">
      <input type="hidden" name="map_web_imagepath"
value="c:/Inetpub/wwwroot/MapServer/Docs/tmp/">
      <input type="hidden" name="map_web_imageurl" value="/Docs/tmp/">
But still when I hit the "Initialize" button, I get "The Page can not be
displayed" error.
Do you have any idea about whats goin wrong here?
Thank you again,
Manjiri



On Wed, 29 Sep 2004 11:41:04 -0500, David Fawcett
<David.Fawcett at STATE.MN.US> wrote:

>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