<!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 &#8220;/tmp/&#8221;
instead of &#8220;\tmp\&#8221;.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</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'>&nbsp;</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>
&lt;html&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;head&gt;&lt;title&gt;MapServer Hello World&lt;/title&gt;&lt;/head&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;body&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;form method=POST action=&quot;\cgi-bin\mapserv.exe&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;input type=&quot;submit&quot; value=&quot;Click Me&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;input type=&quot;hidden&quot; name=&quot;map&quot; value=&quot;hello.map&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;input type=&quot;hidden&quot; name=&quot;map_web_imagepath&quot;
value=&quot;c:\ms4w\Apache\htdocs\tmp\&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/form&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;IMG SRC=&quot;[img]&quot; width=400 height=300 border=0&gt;<br>
&lt;/body&gt;<br>
&lt;/html&gt;<br>
<br>
The conents of hello.map are:<br>
<br>
#This is our &quot;Hello World&quot; mapfile<br>
NAME &quot;Hello_world&quot;<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>
&nbsp;&nbsp;&nbsp; TEMPLATE &quot;c:\ms4w\Apache\htdocs\hello.html&quot;<br>
&nbsp;&nbsp;&nbsp; IMAGEPATH &quot;c:\ms4w\Apache\htdocs\tmp\&quot;<br>
&nbsp;&nbsp;&nbsp; IMAGEURL &quot;\tmp\&quot;<br>
END<br>
LAYER<br>
&nbsp;&nbsp;&nbsp; STATUS default<br>
&nbsp;&nbsp;&nbsp; TYPE point<br>
&nbsp;&nbsp;&nbsp; FEATURE<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; POINTS 0.0 0.0 END<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TEXT &quot;Hello World&quot;<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 255 0 0<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; LABEL<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TYPE bitmap<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; END<br>
END<br>
&nbsp;&nbsp;&nbsp; <br>
<br>
<br>
When i click on &quot;Click me&quot; 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&nbsp; &lt;input type=&quot;hidden&quot; name=&quot;map&quot;
value=&quot;cgi-bin\hello.map&quot;&gt; <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'>&nbsp;</span></font></pre><pre style='margin-left:
.5in'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>&nbsp;</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'>&nbsp;</span></font></pre><pre style='margin-left:
.5in'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>&nbsp;</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'>&nbsp;</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 &amp; Communications Engineering<br>
Univercity of </span></font>Thessaly.<br>
<br>
<br>
<br>
<br>
<br>
<br>
</p>

</div>

</body>

</html>