<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:garamond,new york,times,serif;font-size:12pt"><div>Hi all,<br><br>i want to used chameleon framework for webgis, then Chameleon already installed with checking in localhost MS4W-MapServer 4 Windows:<br><br>bla...<br>bla...<br>;<br>;<br>Application<br>Chameleon 2.4 URL:<br><br><blockquote>

  <p><a href="http://localhost/chameleon/admin/">Chameleon Administration.</a></p>

  <p><a href="http://localhost/chameleon/docs/">Chameleon Documentation.</a></p>

  <p><a href="http://localhost/chameleon/help/">Chameleon HelpViewer.</a></p>

  <p><a href="http://localhost/chameleon/samples/">Chameleon Sample Applications.</a></p>

  <p><a href="http://localhost/chameleon/cwc2">CWC2 Service Instance.</a></p>

</blockquote>(But that makes me confuse that when i clicked them above, just warning in browser: <h1>Forbidden</h1>
<p><span style="font-weight: bold;">You don't have permission to access /chameleon/admin/
on this server</span>.)</p><p><br></p><p><br></p><p>but, i still try, write down mapfile then initialize.phtml with cwc2.css, then i got warning like this :<br></p><br>"<font size="2"><b style="font-family: arial,helvetica,sans-serif;">Warning</b><span style="font-family: arial,helvetica,sans-serif;">:  session_start() [</span><a style="font-family: arial,helvetica,sans-serif;" href="http://localhost/appweb/function.session-start">function.session-start</a><span style="font-family: arial,helvetica,sans-serif;">]: Cannot send session cache limiter - headers already sent (output started at I:\ms4w\Apache\htdocs\appweb\index.phtml:4) in </span><b style="font-family: arial,helvetica,sans-serif;">i:\ms4w\Apache\htdocs\chameleon\htdocs\common\session\session.php</b><span style="font-family: arial,helvetica,sans-serif;"> on line </span><b style="font-family: arial,helvetica,sans-serif;">509</b><br style="font-family: arial,helvetica,sans-serif;"><br
 style="font-family: arial,helvetica,sans-serif;"><b style="font-family: arial,helvetica,sans-serif;">Notice</b></font>

<font size="2"><span style="font-family: arial,helvetica,sans-serif;">:  Undefined variable:  szMapFile in </span><b style="font-family: arial,helvetica,sans-serif;">I:\ms4w\Apache\htdocs\appweb\index.phtml</b><span style="font-family: arial,helvetica,sans-serif;"> on line </span></font><b><font size="2"><span style="font-family: arial,helvetica,sans-serif;">21</span></font>"<br><br><br></b>anyone can help me or explain what happened?<b><br><br>here the mapfile:<br></b><font style="font-family: arial,helvetica,sans-serif;" size="2">MAP<br>NAME kelurahan<br>IMAGETYPE JPEG<br>EXTENT -123.950500 -183.224900 299.457000 145.260600<br>STATUS ON<br>UNITS KILOMETERS<br>SIZE 600 500<br>IMAGECOLOR 366 366 366<br>FONTSET "i:\Spatial\font\font.dat"<br>#SHAPEPATH"i:/ms4w/Apache/htdocs/appweb/shp/"<br><br>WEB <br>&nbsp;&nbsp;&nbsp; TEMPLATE "i:\ms4w\Apache\htdocs\script\tmpl_cham.html"<br>&nbsp;&nbsp;&nbsp; IMAGEPATH "i:\ms4w\Apache\htdocs\temp\"
 <br><span>&nbsp;&nbsp;&nbsp; IMAGEURL "<a target="_blank" href="http://localhost/temp/">http://localhost/temp/</a>"</span><br>END<br>#mulai pendefinisian layers<br><br>&nbsp;&nbsp;&nbsp; LAYER <br>&nbsp;&nbsp;&nbsp; NAME tbk_bjsr_gender<br>&nbsp;&nbsp;&nbsp; STATUS DEFAULT<br>&nbsp;&nbsp;&nbsp; TYPE POLYGON<br>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE POSTGIS<br>&nbsp;&nbsp;&nbsp; CONNECTION "user=x password=x dbname=dbSpatialSura host=localhost port=5432"<br>&nbsp;&nbsp;&nbsp; DATA "the_geom FROM tbk_bjsr_gender USING UNIQUE kode_kel"<br>&nbsp;&nbsp;&nbsp; MINSCALE 100000<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME "Jum laki2"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; EXPRESSION ([ljum_bj]=1874) <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 255 50 50<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
 OUTLINECOLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WIDTH 2<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END#STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END #CLASS<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME "jum perempuan"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; EXPRESSION([pjum_bj]=2240)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 255 155 150<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OUTLINECOLOR 19 19 19<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WIDTH 2<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END#STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
 END#CLASS<br>&nbsp;&nbsp;&nbsp; END #LAYER<br><br>&nbsp;&nbsp;&nbsp; LAYER<br>&nbsp;&nbsp;&nbsp; NAME tbk_jeb_gender<br>&nbsp;&nbsp;&nbsp; STATUS DEFAULT<br>&nbsp;&nbsp;&nbsp; TYPE POLYGON<br>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE POSTGIS<br>&nbsp;&nbsp;&nbsp; CONNECTION "user=x password=x dbname=dbSpatialSura host=localhost port=5432"<br>&nbsp;&nbsp;&nbsp; DATA "the_geom FROM tbk_jeb_gender USING UNIQUE kode_kel"<br>&nbsp;&nbsp;&nbsp; MINSCALE 100000<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME "ljum_jeb"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; EXPRESSION ([ljum_jeb]=3941) <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 255 50 50<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WIDTH 2<br>&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END#STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END #CLASS<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME "pjum_jeb"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; EXPRESSION([pjum_jeb]=6292)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 255 155 150<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OUTLINECOLOR 19 19 19<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WIDTH 2<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END#STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END#CLASS<br>&nbsp;&nbsp;&nbsp; END #LAYER<br><br>SCALEBAR <br>&nbsp;&nbsp;&nbsp; STATUS ON #dg
 template<br>&nbsp;&nbsp;&nbsp; LABEL<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SIZE Medium<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 255 255<br>&nbsp;&nbsp;&nbsp; END# LABEL<br>&nbsp;&nbsp;&nbsp; STYLE 1<br>&nbsp;&nbsp;&nbsp; INTERVALS 3<br>&nbsp;&nbsp;&nbsp; SIZE 200 5<br>&nbsp;&nbsp;&nbsp; COLOR 0 0 0 <br>&nbsp;&nbsp;&nbsp; BACKGROUNDCOLOR 255 255 255<br>&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; UNITS KILOMETERS<br>&nbsp;&nbsp;&nbsp; POSITION LR<br>&nbsp;&nbsp;&nbsp; TRANSPARENT TRUE<br>&nbsp;&nbsp;&nbsp; END # SCALEBAR<br>&nbsp;&nbsp;&nbsp; <br>LEGEND # BLOK LEGENDA<br>&nbsp;&nbsp;&nbsp; IMAGECOLOR 255 255 204 # kuning Muda<br>&nbsp;&nbsp;&nbsp; KEYSIZE 18 9<br>&nbsp;&nbsp;&nbsp; KEYSPACING 3 5<br>&nbsp;&nbsp;&nbsp; POSTLABELCACHE TRUE<br>&nbsp;&nbsp;&nbsp; STATUS ON # template<br>&nbsp;&nbsp;&nbsp; TRANSPARENT OFF<br>&nbsp;&nbsp;&nbsp; LABEL # LABEL
 LEGENDA&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TYPE TRUETYPE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FONT ARIAL<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SIZE 6<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>&nbsp;&nbsp;&nbsp; END #LABEL<br>&nbsp;&nbsp;&nbsp; TEMPLATE "i:\ms4w\Apache\htdocs\dbee_html\legenda.html"<br>END # AKHIR BLOK LEGENDA<br><br>END #map</font><b><br><br>here the template: <br></b><font style="font-family: arial,helvetica,sans-serif;" size="2">&lt;HTML&gt;<br>&lt;HEAD&gt;<br>&lt;TITLE&gt;Membuat Widget Chameleon&lt;/TITLE&gt;<br>&lt;link href="I:/ms4w/Apache/htdocs/script/cwc2.css" rel="stylesheet" type="text/css"&gt;<br>&lt;/HEAD&gt;<br>&lt;body onLoad="CWC2OnLoadFunction()"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;form&gt;<br>&nbsp;&nbsp;&nbsp; &lt;table border="0" cellpadding="2" cellspacing="0"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;tr&gt;<br>&nbsp;&nbsp;&nbsp;
 &lt;td colspan="3" align="center"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;CWC2 TYPE="MapDHTML"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; VISIBLE="true"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WIDTH="400"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HEIGHT="300"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ALLOWRESIZE="true"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MARQUEECOLOR="#FF3333"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MARQUEWIDTH="2"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINSCALE="1"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/table&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/form&gt;<br>&lt;/body&gt;<br>&lt;/HTML&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="2"><b> <br><font size="3"><br></font></b><font style="font-family: arial,helvetica,sans-serif;" size="1"><br></font><b><br><font size="3">Here the
 initialize.phtml:</font><br></b></font><font size="2"><span style="font-family: arial,helvetica,sans-serif;">&lt;HTML&gt;</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&lt;HEAD&gt;&lt;TITLE&gt;Membuat WIDGET Chameleon&lt;/TITLE&gt;</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&lt;BODY&gt;</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&lt;?php</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">include("i:/ms4w/Apache/htdocs/chameleon/htdocs/chameleon.php");</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; $szTemplate="i:/ms4w/Apache/htdocs/dbee_html/tmpl_cham.html";</span><br style="font-family:
 arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; $szMapfile="i:/Spatial/mapfile/kelur_cham.map";</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; class SampleApp extends Chameleon</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; {</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; function SampleApp()</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
 parent::Chameleon();</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $this-&gt;moMapSession=new MapSession_RW;</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $this-&gt;moMapSession-&gt;setTempDir</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (getSessionSavePath());</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; }</span><br style="font-family:
 arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; </span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; $oApp= new SampleApp();</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; $oApp-&gt;registerSkin('skins/sample');</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; $oApp-&gt;CWCInitialize($szTemplate, $szMapFile);</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; $oApp-&gt;CWCExecute();</span><br style="font-family: arial,helvetica,sans-serif;"><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">?&gt;</span><br
 style="font-family: arial,helvetica,sans-serif;"><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&lt;/BODY&gt;</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&lt;/HTML&gt;</span></font><b><br><br></b></div>
</div><br>

      </body></html>