|
||||
[Chameleon] line breaks in Hidden input itemsMatt Frost matt.frost@mma1.comWed, 10 Dec 2003 09:26:09 -0500
|
Suddenly my page is including several line breaks at the beginning, pushing everything down the page. The source code shows many of the hidden input variables followed by <br> tags, as shown in the following excerpt: <input TYPE=HIDDEN NAME=CONTEXTSELECTOR VALUE="1"><br> <input TYPE=HIDDEN NAME=CONTEXT VALUE=""><br> <input TYPE=HIDDEN NAME=TEMPLATE VALUE=""><br> <input TYPE=HIDDEN NAME=CONTEXTSELECTOR_CONTEXT_CHANGED VALUE=""><br> Where did these come from and how can I remove them? -Matt Frost ----- Original Message ----- From: <chameleon-request@lists.maptools.org> To: <chameleon@lists.maptools.org> Sent: Tuesday, December 09, 2003 12:00 PM Subject: Chameleon digest, Vol 1 #67 - 4 msgs > Send Chameleon mailing list submissions to > chameleon@lists.maptools.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.maptools.org/mailman/listinfo/chameleon > or, via email, send a message with subject or body 'help' to > chameleon-request@lists.maptools.org > > You can reach the person managing the list at > chameleon-admin@lists.maptools.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Chameleon digest..." > > > Today's Topics: > > 1. PHP Mapscript and Chameleon (Liz Godwin) > 2. Chameleon with Windows 2k and IIS (nicolas.fortin@ec.gc.ca) > 3. Re: Chameleon with Windows 2k and IIS (bartvde@xs4all.nl) > 4. RE : [Chameleon] Chameleon with Windows 2k and IIS (nicolas.fortin@ec.gc.ca) > > --__--__-- > > Message: 1 > Date: Mon, 08 Dec 2003 13:06:49 -0500 > From: "Liz Godwin" <godwinl@agr.gc.ca> > To: <chameleon@lists.maptools.org> > Subject: [Chameleon] PHP Mapscript and Chameleon > > I would like to know the extent to which I can use PHP / Mapscript with > Chameleon while avoiding making a new widget. Has anyone done this, or > know about it? > > I talked briefly with Tom Kralidis about this, and he said that I could > use a php file as a template if I reference it http://path/template.php, > because the php would be interpreted by the server before being passsed > to Chameleon. > > However, can I send this template requests stored in form variables > much the same way I would with a normal self processing php page? How > does that interfere with Chameleon? > > Why do I want to do this? > > There are some things I want to do, or may want to do, that are not > written into widgets, and that I may not want to write into a widget. > I'm still exploring my options, this is just part of it. I have some > dynamic layers, special query templates, and HTML legends. > > Cheers, > > Liz > > --__--__-- > > Message: 2 > From: nicolas.fortin@ec.gc.ca > To: chameleon@lists.maptools.org > Date: Tue, 9 Dec 2003 09:34:35 -0500 > Subject: [Chameleon] Chameleon with Windows 2k and IIS > > This message is in MIME format. Since your mail reader does not understand > this format, some or all of this message may not be legible. > > ------_=_NextPart_001_01C3BE61.916DC060 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > Hi list, > =20 > I'm using Mapserver for some time now and want to add Chameleon to get = > more > functionnality. I'm using Windows 2000 SP4 with IIS. > =20 > Unfortunately, there's no doc about installing chameleon on Windows = > platform > with IIS with all steps. > =20 > First I manually installed PHP in C:\PHP\ successfully. > Then I installed the PHP Mapscript extensions. I tested with <?php > phpinfo();?> and saw the PHP Mapscript extensions. > Last I installed Chameleon 1.0.4 in C:\cwc2\ and made a virtual = > directory > from IIS that point to C:\cwc2\htdocs > I made the C:\cwc2 dir readable-writable by IUSR_ > I made some change to the C:\cwc2\config\cwc2.xml file but I don't know = > if > the paths in there are absolute or relative and if relative...to what? > =20 > If I try this : = > http://localhost/cwc2/cwc2.php?TEMPLATE=3Dcwc2/demo.html > <http://localhost/cwc2/cwc2.php?TEMPLATE=3Dcwc2/demo.html&CONTEXT=3Dcwc2= > /gmap_co > ntext.xml> &CONTEXT=3Dcwc2/gmap_context.xml > I got: > FATAL ERROR: Session save path (/tmp) doesn't exist or is not writable > Notice: Undefined index: gszSessId in > C:\cwc2\htdocs\common\session\session.php on line 135 > PHP: Error parsing C:\winnt\system32\inetsrv\browscap.ini on line 1169 = > PHP > Notice: Undefined index: gszSessId in > C:\cwc2\htdocs\common\session\session.php on line 135=20 > =20 > I have a writable tmp dir at the root of IIS. > Line 1167-1170 of browscap.ini: > [Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461)] > parent=3DIE 5.5 > platform=3DWindows 2000 (T312461) > beta=3DFalse > > =20 > 1) What do I have to do to set up Chameleon correctly for Windows/IIS ? > 2) I used Mapserver with Oracle 9.2. There's no INPUT=3DORACLESPATIAL = > for the > version of Mapserver Mapscript use. Do Mapscript has a precompiled = > version > of Mapserver or it will use the version I already have? > =20 > Thx a lot, > > Nicolas Fortin=20 > Math=E9maticien, Programmeur, Analyste de donn=E9es=20 > SMC-Qu=E9bec Hydrologie, Environnement Canada=20 > 1141, Rte de l'=C9glise, Sainte-Foy(QC) G1V 4H5=20 > (418)648-2516=20 > nicolas.fortin@ec.gc.ca <mailto:nicolas.fortin@ec.gc.ca > <mailto:nicolas.fortin@ec.gc.ca> >=20 > > =20 > > ------_=_NextPart_001_01C3BE61.916DC060 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = > charset=3Diso-8859-1"> > <TITLE>Message</TITLE> > > <META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR></HEAD> > <BODY> > <DIV><SPAN class=3D620201214-09122003><FONT face=3DArial size=3D2>Hi=20 > list,</FONT></SPAN></DIV> > <DIV><SPAN class=3D620201214-09122003><FONT face=3DArial=20 > size=3D2></FONT></SPAN> </DIV> > <DIV><SPAN class=3D620201214-09122003><FONT face=3DArial size=3D2>I'm = > using Mapserver=20 > for some time now and want to add Chameleon to get more = > functionnality. =20 > I'm using Windows 2000 SP4 with IIS.</FONT></SPAN></DIV> > <DIV><SPAN class=3D620201214-09122003><FONT face=3DArial=20 > size=3D2></FONT></SPAN> </DIV> > <DIV><SPAN class=3D620201214-09122003><FONT face=3DArial = > size=3D2>Unfortunately,=20 > there's no doc about installing chameleon on Windows platform with IIS = > with all=20 > steps.</FONT></SPAN></DIV> > <DIV><SPAN class=3D620201214-09122003><FONT face=3DArial=20 > size=3D2></FONT></SPAN> </DIV> > <DIV><SPAN class=3D620201214-09122003><FONT face=3DArial size=3D2>First = > I manually=20 > installed PHP in C:\PHP\ successfully.</FONT></SPAN></DIV> > <DIV><SPAN class=3D620201214-09122003><FONT face=3DArial size=3D2>Then = > I installed the=20 > PHP Mapscript extensions. I tested with <?php phpinfo();?> and = > saw the PHP=20 > Mapscript extensions.</FONT></SPAN></DIV> > <DIV><FONT face=3DArial><FONT size=3D2><SPAN = > class=3D620201214-09122003>Last I=20 > installed Chameleon 1.0.4 in C:\cwc2\</SPAN> <SPAN=20 > class=3D620201214-09122003>and made a virtual directory from IIS that = > point to=20 > C:\cwc2\htdocs</SPAN></FONT></FONT></DIV> > <DIV><FONT face=3DArial><FONT size=3D2><SPAN = > class=3D620201214-09122003>I made the=20 > C:\cwc2 dir readable-writable by IUSR_</SPAN></FONT></FONT></DIV> > <DIV><FONT face=3DArial><FONT size=3D2><SPAN = > class=3D620201214-09122003>I made some=20 > change to the C:\cwc2\config\cwc2.xml file but I don't know if the = > paths in=20 > there are absolute or relative and if relative...to=20 > what?</SPAN></FONT></FONT></DIV> > <DIV><FONT face=3DArial><FONT size=3D2><SPAN=20 > class=3D620201214-09122003></SPAN></FONT></FONT> </DIV> > <DIV><FONT face=3DArial><FONT size=3D2><SPAN = > class=3D620201214-09122003>If I try this=20 > : <A=20 > href=3D"http://localhost/cwc2/cwc2.php?TEMPLATE=3Dcwc2/demo.html&CON= > TEXT=3Dcwc2/gmap_context.xml">http://localhost/cwc2/cwc2.php?TEMPLATE=3D= > cwc2/demo.html&CONTEXT=3Dcwc2/gmap_context.xml</A></SPAN></FONT></FO= > NT></DIV> > <DIV><FONT face=3DArial><FONT size=3D2><SPAN = > class=3D620201214-09122003>I=20 > got:</SPAN></FONT></FONT></DIV> > <DIV><FONT><SPAN class=3D620201214-09122003><FONT color=3D#dd0000>FATAL = > ERROR:=20 > Session save path (/tmp) doesn't exist or is not=20 > writable<BR></FONT><B>Notice</B>: Undefined index: gszSessId in=20 > <B>C:\cwc2\htdocs\common\session\session.php</B> on line = > <B>135</B><BR>PHP:=20 > Error parsing C:\winnt\system32\inetsrv\browscap.ini on line 1169 PHP = > Notice:=20 > Undefined index: gszSessId in C:\cwc2\htdocs\common\session\session.php = > on line=20 > 135 </SPAN></FONT></DIV> > <DIV><FONT><SPAN class=3D620201214-09122003></SPAN></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2><SPAN class=3D620201214-09122003>I = > have a writable=20 > tmp dir at the root of IIS.</SPAN></FONT></DIV> > <DIV><FONT face=3DArial size=3D2><SPAN class=3D620201214-09122003>Line = > 1167-1170 of=20 > browscap.ini:</SPAN></FONT></DIV> > <DIV><FONT face=3DArial size=3D2><SPAN = > class=3D620201214-09122003> [Mozilla/4.0=20 > (compatible; MSIE 5.5; Windows NT 5.0; T312461)]<BR> parent=3DIE=20 > 5.5<BR> platform=3DWindows 2000 (T312461)<BR> =20 > beta=3DFalse<BR></SPAN></FONT></DIV> > <DIV><FONT face=3DArial size=3D2><SPAN=20 > class=3D620201214-09122003> </DIV></SPAN></FONT> > <DIV><FONT face=3DArial size=3D2><SPAN class=3D620201214-09122003>1) = > What do I have to=20 > do to set up Chameleon correctly for Windows/IIS ?</SPAN></FONT></DIV> > <DIV><FONT face=3DArial size=3D2><SPAN class=3D620201214-09122003>2) I = > used Mapserver=20 > with Oracle 9.2. There's no INPUT=3DORACLESPATIAL for the version = > of=20 > Mapserver Mapscript use. Do Mapscript has a precompiled version = > of=20 > Mapserver or it will use the version I already = > have?</SPAN></FONT></DIV> > <DIV><FONT face=3DArial size=3D2><SPAN=20 > class=3D620201214-09122003> </DIV></SPAN></FONT> > <DIV><SPAN class=3D620201214-09122003><FONT face=3DArial size=3D2>Thx a = > > lot,</FONT></SPAN></DIV> > <P><B><I><FONT face=3D"Bookman Old Style" color=3D#000080 = > size=3D2>Nicolas=20 > Fortin</FONT></I></B><I></I> <BR><B><FONT face=3DArial = > size=3D1>Math=E9maticien,=20 > Programmeur, Analyste de donn=E9es</FONT></B> <BR><B><FONT face=3DArial = > > size=3D1>SMC-Qu=E9bec Hydrologie, Environnement Canada</FONT></B> = > <BR><B><FONT=20 > face=3DArial size=3D1>1141, Rte de l'=C9glise, Sainte-Foy(QC) G1V = > 4H5</FONT></B>=20 > <BR><B><FONT face=3DArial size=3D1>(418)648-2516</FONT></B> = > <BR><U><FONT face=3DArial=20 > color=3D#0000ff size=3D1>nicolas.fortin@ec.gc.ca <<A=20 > href=3D"mailto:nicolas.fortin@ec.gc.ca">mailto:nicolas.fortin@ec.gc.ca</= > A>></FONT></U>=20 > </P> > <DIV> </DIV></BODY></HTML> > > ------_=_NextPart_001_01C3BE61.916DC060-- > > --__--__-- > > Message: 3 > Date: Tue, 9 Dec 2003 16:33:18 +0100 (CET) > Subject: Re: [Chameleon] Chameleon with Windows 2k and IIS > From: bartvde@xs4all.nl > To: nicolas.fortin@ec.gc.ca > Cc: chameleon@lists.maptools.org > > Hi Nicolas, > > I can give some brief answers, but for more elaborate ones you will need > input from the guys at DmSolutions. > > I can tell you what needs to be done in Apache, and perhaps you are able > to translate this to IIS. > > ---- > In httpd.conf from Apache: > > Alias /ms_tmp/ /ms4w/tmp/ms_tmp/ > > SetEnv PROJ_LIB /ms4w/proj/nad/ > > For PHP Chameleon "needs" the following: > > session.save_path = /ms4w/tmp > ---- > > Is there a specific reason why you are using the 1.0.4 version? The 1.0 > version will be deprecated in time and the 1.1 version is the one to go > with. Although it is alpha, the core is pretty stable. > > I would recommend installing MS4W (with Apache and PHP preconfigured), > then see how everything functions, and map this to IIS. > > -MS4W > -latest Chameleon 1.1 alpha as an MS4W package > -Chameleon sample application > > With regard to the Mapscript binaries with Oracle. The binaries for > Mapserver which have Oracle Spatial support are built by somebody at the > University of Minnesota. The PHP Mapscript are built by DmSolutions, and > they don't provide one with Oracle Spatial support as far as I know. > > But you can always use the principle of Cascading WMS to have the > mapserv.exe serve the Oracle Spatial data. > > Hope this is of some help. > > Best regards, > Bart > > > Hi list, > > > > I'm using Mapserver for some time now and want to add Chameleon to get > > more > > functionnality. I'm using Windows 2000 SP4 with IIS. > > > > Unfortunately, there's no doc about installing chameleon on Windows > > platform > > with IIS with all steps. > > > > First I manually installed PHP in C:\PHP\ successfully. > > Then I installed the PHP Mapscript extensions. I tested with <?php > > phpinfo();?> and saw the PHP Mapscript extensions. > > Last I installed Chameleon 1.0.4 in C:\cwc2\ and made a virtual directory > > from IIS that point to C:\cwc2\htdocs > > I made the C:\cwc2 dir readable-writable by IUSR_ > > I made some change to the C:\cwc2\config\cwc2.xml file but I don't know if > > the paths in there are absolute or relative and if relative...to what? > > > > If I try this : http://localhost/cwc2/cwc2.php?TEMPLATE=cwc2/demo.html > > <http://localhost/cwc2/cwc2.php?TEMPLATE=cwc2/demo.html&CONTEXT=cwc2/gmap_co > > ntext.xml> &CONTEXT=cwc2/gmap_context.xml > > I got: > > FATAL ERROR: Session save path (/tmp) doesn't exist or is not writable > > Notice: Undefined index: gszSessId in > > C:\cwc2\htdocs\common\session\session.php on line 135 > > PHP: Error parsing C:\winnt\system32\inetsrv\browscap.ini on line 1169 PHP > > Notice: Undefined index: gszSessId in > > C:\cwc2\htdocs\common\session\session.php on line 135 > > > > I have a writable tmp dir at the root of IIS. > > Line 1167-1170 of browscap.ini: > > [Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461)] > > parent=IE 5.5 > > platform=Windows 2000 (T312461) > > beta=False > > > > > > 1) What do I have to do to set up Chameleon correctly for Windows/IIS ? > > 2) I used Mapserver with Oracle 9.2. There's no INPUT=ORACLESPATIAL for > > the > > version of Mapserver Mapscript use. Do Mapscript has a precompiled > > version > > of Mapserver or it will use the version I already have? > > > > Thx a lot, > > > > Nicolas Fortin > > Mathématicien, Programmeur, Analyste de données > > SMC-Québec Hydrologie, Environnement Canada > > 1141, Rte de l'Église, Sainte-Foy(QC) G1V 4H5 > > (418)648-2516 > > nicolas.fortin@ec.gc.ca <mailto:nicolas.fortin@ec.gc.ca > > <mailto:nicolas.fortin@ec.gc.ca> > > > > > > > > > > --__--__-- > > Message: 4 > From: nicolas.fortin@ec.gc.ca > To: bartvde@xs4all.nl > Cc: chameleon@lists.maptools.org > Subject: RE : [Chameleon] Chameleon with Windows 2k and IIS > Date: Tue, 9 Dec 2003 11:16:12 -0500 > > > Hi Bart, > > Thx for your fast answer! > > Unfortunately, I have to work with IIS only but I got it to work now! > > The /tmp was refering to the session.save_path in the php.ini file > I comment all the (...) in the browscap.ini > I change some path in the cwc2.xml > > And now the demo works :) > > Nicolas > > -----Message d'origine----- > De : bartvde@xs4all.nl [mailto:bartvde@xs4all.nl] > Envoyé : Tuesday, December 09, 2003 10:33 AM > À : nicolas.fortin@ec.gc.ca > Cc : chameleon@lists.maptools.org > Objet : Re: [Chameleon] Chameleon with Windows 2k and IIS > > > Hi Nicolas, > > I can give some brief answers, but for more elaborate ones you will need > input from the guys at DmSolutions. > > I can tell you what needs to be done in Apache, and perhaps you are able to > translate this to IIS. > > ---- > In httpd.conf from Apache: > > Alias /ms_tmp/ /ms4w/tmp/ms_tmp/ > > SetEnv PROJ_LIB /ms4w/proj/nad/ > > For PHP Chameleon "needs" the following: > > session.save_path = /ms4w/tmp > ---- > > Is there a specific reason why you are using the 1.0.4 version? The 1.0 > version will be deprecated in time and the 1.1 version is the one to go > with. Although it is alpha, the core is pretty stable. > > I would recommend installing MS4W (with Apache and PHP preconfigured), then > see how everything functions, and map this to IIS. > > -MS4W > -latest Chameleon 1.1 alpha as an MS4W package > -Chameleon sample application > > With regard to the Mapscript binaries with Oracle. The binaries for > Mapserver which have Oracle Spatial support are built by somebody at the > University of Minnesota. The PHP Mapscript are built by DmSolutions, and > they don't provide one with Oracle Spatial support as far as I know. > > But you can always use the principle of Cascading WMS to have the > mapserv.exe serve the Oracle Spatial data. > > Hope this is of some help. > > Best regards, > Bart > > > Hi list, > > > > I'm using Mapserver for some time now and want to add Chameleon to get > > more functionnality. I'm using Windows 2000 SP4 with IIS. > > > > Unfortunately, there's no doc about installing chameleon on Windows > > platform with IIS with all steps. > > > > First I manually installed PHP in C:\PHP\ successfully. > > Then I installed the PHP Mapscript extensions. I tested with <?php > > phpinfo();?> and saw the PHP Mapscript extensions. Last I installed > > Chameleon 1.0.4 in C:\cwc2\ and made a virtual directory from IIS that > > point to C:\cwc2\htdocs I made the C:\cwc2 dir readable-writable by > > IUSR_ I made some change to the C:\cwc2\config\cwc2.xml file but I > > don't know if the paths in there are absolute or relative and if > > relative...to what? > > > > If I try this : http://localhost/cwc2/cwc2.php?TEMPLATE=cwc2/demo.html > > <http://localhost/cwc2/cwc2.php?TEMPLATE=cwc2/demo.html&CONTEXT=cwc2/g > > map_co > > ntext.xml> &CONTEXT=cwc2/gmap_context.xml > > I got: > > FATAL ERROR: Session save path (/tmp) doesn't exist or is not writable > > Notice: Undefined index: gszSessId in > > C:\cwc2\htdocs\common\session\session.php on line 135 > > PHP: Error parsing C:\winnt\system32\inetsrv\browscap.ini on line 1169 PHP > > Notice: Undefined index: gszSessId in > > C:\cwc2\htdocs\common\session\session.php on line 135 > > > > I have a writable tmp dir at the root of IIS. > > Line 1167-1170 of browscap.ini: > > [Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461)] > > parent=IE 5.5 > > platform=Windows 2000 (T312461) > > beta=False > > > > > > 1) What do I have to do to set up Chameleon correctly for Windows/IIS > > ? > > 2) I used Mapserver with Oracle 9.2. There's no INPUT=ORACLESPATIAL for > > the > > version of Mapserver Mapscript use. Do Mapscript has a precompiled > > version > > of Mapserver or it will use the version I already have? > > > > Thx a lot, > > > > Nicolas Fortin > > Mathématicien, Programmeur, Analyste de données > > SMC-Québec Hydrologie, Environnement Canada > > 1141, Rte de l'Église, Sainte-Foy(QC) G1V 4H5 > > (418)648-2516 > > nicolas.fortin@ec.gc.ca <mailto:nicolas.fortin@ec.gc.ca > > <mailto:nicolas.fortin@ec.gc.ca> > > > > > > > > > > > --__--__-- > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > > > End of Chameleon Digest
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |