<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>hi </DIV>
<DIV>&nbsp;</DIV>
<DIV>Here is how I reference paths in Mapserver under Windows:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; # this is the real filepath to the temp dir for intermediate file creation<BR>&nbsp; IMAGEPATH "/ms4w/tmp/ms_tmp/"</DIV>
<DIV>&nbsp;</DIV>
<DIV>THis works for me.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Kind regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert Sanson<BR><BR>&gt;&gt;&gt; Guillaume Sueur &lt;guillaume.sueur@neogeo-online.net&gt; 21/05/2008 4:46 a.m. &gt;&gt;&gt;<BR></DIV>
<DIV style="COLOR: #000000">if you can, yes, have a try to linux. But this should work on Windows too.<BR>it's been a long time since I haven't used MapServer on Windows, but I <BR>remember having had problems with backslashes. Can you try doubling them <BR>(ie C:\\ms4w\\Apache\\htdocs\\test.html)<BR><BR>Can you confirm it is still the exact same error (parsing error on line <BR>1) ?<BR><BR>then, can you check your CR-LF as well ?<BR><BR>Hope that helps !<BR><BR>Guillaume<BR><BR>????? ?apad???? a écrit :<BR>&gt; Unfortunately the error insists.<BR>&gt; I have tried every advice you gave me but stiil nothing.<BR>&gt; All the modifications i did are:<BR>&gt; 1)Check the orientation of slashes and i actually tried every possible <BR>&gt; orientation.<BR>&gt; 2)Placed the MAP keyword in the first line of .map file.<BR>&gt; 3)Tried an older version of MapServer (although there is nothing <BR>&gt; different according to the site...).<BR>&gt; <BR>&gt; Perhaps i should try it on linux?<BR>&gt; Does it make any difference at all?<BR>&gt; <BR>&gt; *test.map*<BR>&gt; <BR>&gt; MAP<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; NAME "TEST!!!"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SI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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&gt; END<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; *test.html<BR>&gt; <BR>&gt; *&lt;html&gt;<BR>&gt; &lt;head&gt;&lt;title&gt;MapServer Hello World&lt;/title&gt;&lt;/head&gt;<BR>&gt; <BR>&gt; &lt;body&gt;<BR>&gt; <BR>&gt; <BR>&gt; &lt;form method=POST action="/cgi-bin/mapserv.exe"&gt;<BR>&gt;&nbsp;&nbsp; &lt;input type="submit" value="Click"&gt;<BR>&gt;&nbsp;&nbsp; &lt;input type="hidden" name="MAP" value="C:\ms4w\Apache\htdocs\test.map"&gt;<BR>&gt;&nbsp;&nbsp; &lt;input type="hidden" name="map_web" value="imagepath <BR>&gt; C:\ms4w\Apache\htdocs\tmp\ imageurl /tmp/"&gt;<BR>&gt; &lt;/form&gt;<BR>&gt; &lt;IMG SRC="[img]" width=400 height=300 border=0&gt;<BR>&gt; <BR>&gt; <BR>&gt; &lt;/body&gt;<BR>&gt; &lt;/html&gt;<BR>&gt; *<BR>&gt; *<BR>&gt; <BR>&gt; <BR>&gt; ------------------------------------------------------------------------<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; mapserver-users mailing list<BR>&gt; mapserver-users@lists.osgeo.org<BR><BR><BR>_______________________________________________<BR>mapserver-users mailing list<BR>mapserver-users@lists.osgeo.org<BR><A href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR><BR></DIV><br><br><table bgcolor=white style="color:black"><tr><td><br>------------------------------------------------------------------<br>
The&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;message.<br>
------------------------------------------------------------------</td></tr></table><br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for malware by SurfControl plc.  </FONT><A href="http://www.surfcontrol.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>www.surfcontrol.com</FONT></A></P>
</body></HTML>