<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
color:black;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
pre
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.EmailStyle20
{font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body bgcolor=white lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The only thing I can see initially, Is tht
you may want to change the IMAGEURL slashes in your mapfile to “/tmp/”
instead of “\tmp\”.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Robert W. Burgholzer</span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Surface Water Modeler</span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Office of Water Supply and Planning</span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Virginia</span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'> </span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>Department</span></font><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> of
Environmental Quality</span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'><a href="mailto:rwburgholzer@deq.virginia.gov">rwburgholzer@deq.virginia.gov</a></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>804-698-4405</span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Open Source Modeling Tools:</span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'><a href="http://sourceforge.net/projects/npsource/">http://sourceforge.net/projects/npsource/</a></span></font></p>
</div>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:windowtext'>-----Original
Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <b><span style='font-weight:
bold'>On Behalf Of </span></b>nipapada@gmail.com<br>
<b><span style='font-weight:bold'>Sent:</span></b> </span></font><font size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'>Thursday, May 15, 2008</span></font><font size=2
color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> </span></font><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext'>4:48 PM</span></font><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'><br>
<b><span style='font-weight:bold'>To:</span></b>
mapserver-users@lists.osgeo.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [mapserver-users] msLoadMap()
Unable to access file</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>Hello.<br>
<br>
I try to run an example i found in B. Kropla's book (Beginning MapServer - Open
Source GIS Development) in windows XP.<br>
I create a hello.html template which is placed in htdocs folder of the Apache
server.<br>
Also, hello.map is placed in htdocs folder as well.<br>
The contents of hello.html are:<br>
<br>
<html><br>
<head><title>MapServer Hello World</title></head><br>
<body><br>
<form method=POST action="\cgi-bin\mapserv.exe"><br>
<input type="submit" value="Click Me"><br>
<input type="hidden" name="map" value="hello.map"><br>
<input type="hidden" name="map_web_imagepath"
value="c:\ms4w\Apache\htdocs\tmp\"><br>
</form><br>
<IMG SRC="[img]" width=400 height=300 border=0><br>
</body><br>
</html><br>
<br>
The conents of hello.map are:<br>
<br>
#This is our "Hello World" mapfile<br>
NAME "Hello_world"<br>
SIZE 400 300<br>
IMAGECOLOR 249 245 186<br>
IMAGETYPE png<br>
EXTENT -1.00 -1.00 1.00 1.00<br>
WEB<br>
TEMPLATE "c:\ms4w\Apache\htdocs\hello.html"<br>
IMAGEPATH "c:\ms4w\Apache\htdocs\tmp\"<br>
IMAGEURL "\tmp\"<br>
END<br>
LAYER<br>
STATUS default<br>
TYPE point<br>
FEATURE<br>
POINTS 0.0 0.0 END<br>
TEXT "Hello World"<br>
END<br>
<br>
CLASS<br>
STYLE<br>
COLOR 255 0 0<br>
END<br>
LABEL<br>
TYPE bitmap<br>
END<br>
END<br>
END<br>
END<br>
<br>
<br>
<br>
When i click on "Click me" button i get the message msLoadMap() Unable
to access file hello.map.<br>
Furthemore,when i move hello.map in cgi-bin folder of the Apache server and
change the corresponding line in hello.html<br>
to <input type="hidden" name="map"
value="cgi-bin\hello.map"> <br>
i get the message </span></font></p>
<pre style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>loadWeb(): Unknown identifier. Parsing error near (C):(line 1)</span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'> </span></font></pre><pre style='margin-left:
.5in'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>Furthemore,when i open hello.html instead of getting just the click-me button i get the following:</span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'> </span></font></pre><pre style='margin-left:
.5in'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'> </span></font></pre>
<form \\\lang1032\f0="" cgi-bin\lang1033\f1\\\lang1032\f0="" mapserv.exe="">
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>\par \lang1033\f1
\lang1032\f0
<input value="Click Me" type=submit>
\par \lang1033\f1 \lang1032\f0
<input name=map value="\lang1033\f1 cgi-bin\\\lang1032\f0 hello.map"
type=hidden>
\par \lang1033\f1 \lang1032\f0
<input name="map_web_imagepath"
value="\lang1033\f1 c\lang1032\f0 :\\ms4w\\Apache\\htdocs\\tmp\\\lang1033\f1 "
type=hidden \lang1033\f1="" \lang1032\f0="">
\par \lang1033\f1 \lang1032\f0 </span></font></p>
</form>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>\par \lang1033\f1
\lang1032\f0 <img border=0 width=400 height=300
src="cid:part1.06040803.00090108@gmail.com">\par \par \par } </span></font></p>
<pre style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'> </span></font></pre>
<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><font size=3 color=black face="Times New Roman"><span style='font-size:
12.0pt'><br>
I have read other mail on the same problem but i could not figure it out.<br>
Thank you.<br>
<br>
Nikos Papadakis<br>
Department of Computer & Communications Engineering<br>
Univercity of </span></font>Thessaly.<br>
<br>
<br>
<br>
<br>
<br>
<br>
</p>
</div>
</body>
</html>