<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Already solved. just add sign '/' in the end of CWC2<br><br><CWC2 TYPE="MapDHTML"<br>        VISIBLE="true"<br>        WIDTH="384"<br>        HEIGHT="204"<br>        ALLOWRESIZE="true"<br>        MARQUEECOLOR="#FF3333"<br>        MARQUEEWIDTH="2"<br>        MINSCALE="1"<font size="4"><span style="font-weight: bold;">/</span></font>><br><br>Thanks God Cs, All :D<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr
 size="1"><b><span style="font-weight: bold;">From:</span></b> elisabeth theresia <dbee_kawai@yahoo.com><br><b><span style="font-weight: bold;">To:</span></b> mapserver-users@lists.osgeo.org<br><b><span style="font-weight: bold;">Sent:</span></b> Fri, August 13, 2010 2:39:31 AM<br><b><span style="font-weight: bold;">Subject:</span></b> What's wrong with Path Relative?<br></font><br>
<div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div>Hi all helpers, <br><span><span>it makes me confuse when i used <a target="_blank" href="http://localhost/cgi-bin/mapserv.exe?map=i:/Spatial/mapfile/kec_lbl.map&layers=all&mode=map">http://localhost/cgi-bin/mapserv.exe?map=i:/Spatial/mapfile/kec_lbl.map&layers=all&mode=map</a></span></span><br><br>it appear the map (with absolute path)<br><br>then, when i change folder (Chameleon framework) and change mapfile with<span style="font-weight: bold;"> Relative Path</span> and checking :<br><span><span><a target="_blank" href="http://localhost/cgi-bin/mapserv.exe?map=i:/ms4w/apps/appweb/map/kec_lbl.map&layers=all&mode=map">http://localhost/cgi-bin/mapserv.exe?map=i:/ms4w/apps/appweb/map/kec_lbl.map&layers=all&mode=map</a></span></span><br><br>APPEAR <span style="font-weight: bold;">error</span>:<br>msDrawMap(): Image handling error. Failed to draw layer
 named 'Kecamatan'. <br>
msSHPOpenFile(): Unable to access file. (i:/ms4w/apps/appweb/map/Kecamatan) <br>
msSHPOpenFile(): Unable to access file. (i:/ms4w/apps/appweb/map/../shp/Kecamatan) <br><br>Here the <span style="font-weight: bold;">STRUCTURE</span> of FOLDER:<br>i:<br>    -ms4w<br>        -apps<br>            -<span style="font-weight: bold;">htdocs</span>(Template .html, .phtml)<br>            -appweb<br>                -map (all map stored here)<br>                -shp (all shp stored here)<br>                -etc(fonts)<br><br><br><span style="font-weight: bold;">MAPFILE</span>:<br>MAP<br><br>NAME Kecamatan<br>IMAGETYPE PNG<br>EXTENT -123.950500 -183.224900 299.457000 145.260600<br>STATUS ON<br>UNITS DD<br>SIZE 546 388<br>IMAGECOLOR 255
 255 255 <br>SHAPEPATH "../shp"                <span style="font-weight: bold;">#??? Is it TRUE??</span><br>FONTSET "../etc/font.dat"<br><br>    WEB<br>IMAGEPATH "./temp/"<br>IMAGEURL "./temp/"<br>    END<br><br>#PENDEFINISIAN LAYER<br><br>LAYER<br>NAME Kecamatan<br>DATA Kecamatan<br>STATUS DEFAULT<br>TYPE POLYGON<br>CLASS<br>    NAME "Kecamatan"<br>    STYLE<br>    COLOR 179 243 251<br>    OUTLINECOLOR 0 0 0<br>    END #STYLE<br>END #CLASS<br>END # DEFINISI LAYER<br><br>LAYER <br>NAME "Anotasi"<br>DATA Kecamatan<br>STATUS ON<br>TYPE annotation     # asalnya tipe poligon<br>LABELITEM "kecamatan"<br>CLASS<br>    LABEL<br>    COLOR 0 0 0<br>    TYPE Truetype<br>    FONT Arial<br>    SIZE
 11<br>    MINSIZE 8<br>    ANGLE Auto<br>    POSITION UC<br>    ANTIALIAS True<br>    END # LABEL<br>END #CLASS<br>END #LAYER<br>END #MAP<br><br>Thanks alot Helpers,<br><br>-dbee<br></div>
</div><br>

      </div></div>
</div><br>

      </body></html>