<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>    TEMPLATE "i:\ms4w\Apache\htdocs\script\tmpl_cham.html"<br>    IMAGEPATH "i:\ms4w\Apache\htdocs\temp\"
 <br><span>    IMAGEURL "<a target="_blank" href="http://localhost/temp/">http://localhost/temp/</a>"</span><br>END<br>#mulai pendefinisian layers<br><br>    LAYER <br>    NAME tbk_bjsr_gender<br>    STATUS DEFAULT<br>    TYPE POLYGON<br>    CONNECTIONTYPE POSTGIS<br>    CONNECTION "user=x password=x dbname=dbSpatialSura host=localhost port=5432"<br>    DATA "the_geom FROM tbk_bjsr_gender USING UNIQUE kode_kel"<br>    MINSCALE 100000<br>        CLASS<br>        NAME "Jum laki2"<br>            EXPRESSION ([ljum_bj]=1874) <br>            STYLE<br>            COLOR 255 50 50<br>           
 OUTLINECOLOR 0 0 0<br>            WIDTH 2<br>            ANTIALIAS TRUE<br>            END#STYLE<br>        END #CLASS<br>        CLASS<br>        NAME "jum perempuan"<br>            EXPRESSION([pjum_bj]=2240)<br>            STYLE<br>            COLOR 255 155 150<br>            OUTLINECOLOR 19 19 19<br>            WIDTH 2<br>            ANTIALIAS TRUE<br>            END#STYLE<br>       
 END#CLASS<br>    END #LAYER<br><br>    LAYER<br>    NAME tbk_jeb_gender<br>    STATUS DEFAULT<br>    TYPE POLYGON<br>    CONNECTIONTYPE POSTGIS<br>    CONNECTION "user=x password=x dbname=dbSpatialSura host=localhost port=5432"<br>    DATA "the_geom FROM tbk_jeb_gender USING UNIQUE kode_kel"<br>    MINSCALE 100000<br>        CLASS<br>        NAME "ljum_jeb"<br>            EXPRESSION ([ljum_jeb]=3941) <br>            STYLE<br>            COLOR 255 50 50<br>            OUTLINECOLOR 0 0 0<br>            WIDTH 2<br>   
         ANTIALIAS TRUE<br>            END#STYLE<br>        END #CLASS<br>        CLASS<br>        NAME "pjum_jeb"<br>            EXPRESSION([pjum_jeb]=6292)<br>            STYLE<br>            COLOR 255 155 150<br>            OUTLINECOLOR 19 19 19<br>            WIDTH 2<br>            ANTIALIAS TRUE<br>            END#STYLE<br>        END#CLASS<br>    END #LAYER<br><br>SCALEBAR <br>    STATUS ON #dg
 template<br>    LABEL<br>        SIZE Medium<br>        COLOR 0 0 0<br>        OUTLINECOLOR 255 255 255<br>    END# LABEL<br>    STYLE 1<br>    INTERVALS 3<br>    SIZE 200 5<br>    COLOR 0 0 0 <br>    BACKGROUNDCOLOR 255 255 255<br>    OUTLINECOLOR 0 0 0<br>    UNITS KILOMETERS<br>    POSITION LR<br>    TRANSPARENT TRUE<br>    END # SCALEBAR<br>    <br>LEGEND # BLOK LEGENDA<br>    IMAGECOLOR 255 255 204 # kuning Muda<br>    KEYSIZE 18 9<br>    KEYSPACING 3 5<br>    POSTLABELCACHE TRUE<br>    STATUS ON # template<br>    TRANSPARENT OFF<br>    LABEL # LABEL
 LEGENDA    <br>        TYPE TRUETYPE<br>        FONT ARIAL<br>        COLOR 0 0 0<br>        SIZE 6<br>        ANTIALIAS TRUE<br>    END #LABEL<br>    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"><HTML><br><HEAD><br><TITLE>Membuat Widget Chameleon</TITLE><br><link href="I:/ms4w/Apache/htdocs/script/cwc2.css" rel="stylesheet" type="text/css"><br></HEAD><br><body onLoad="CWC2OnLoadFunction()"><br>    <form><br>    <table border="0" cellpadding="2" cellspacing="0"><br>    <tr><br>   
 <td colspan="3" align="center"><br>    <CWC2 TYPE="MapDHTML"<br>        VISIBLE="true"<br>        WIDTH="400"<br>        HEIGHT="300"<br>        ALLOWRESIZE="true"<br>        MARQUEECOLOR="#FF3333"<br>        MARQUEWIDTH="2"<br>        MINSCALE="1"><br>       </td><br>       </tr><br>       </table><br>       </form><br></body><br></HTML>      </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;"><HTML></span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"><HEAD><TITLE>Membuat WIDGET Chameleon</TITLE></span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"><BODY></span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"><?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;">    $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;">    $szMapfile="i:/Spatial/mapfile/kelur_cham.map";</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">    class SampleApp extends Chameleon</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">    {</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">        function SampleApp()</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">        {</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">           
 parent::Chameleon();</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">            $this->moMapSession=new MapSession_RW;</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">            $this->moMapSession->setTempDir</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">        (getSessionSavePath());</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">        }</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">    }</span><br style="font-family:
 arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">    </span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">    $oApp= new SampleApp();</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">    $oApp->registerSkin('skins/sample');</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">    $oApp->CWCInitialize($szTemplate, $szMapFile);</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">    $oApp->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;">?></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;"></BODY></span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"></HTML></span></font><b><br><br></b></div>
</div><br>

      </body></html>