<DIV>Thank you very much, Zak.</DIV>
<DIV>I tried it, it does not works. I put the other .php file such as mascript_test.php under htdocs of maplab folder. It works fine. It means that .php in maplab is read by apache and mapscript/php. The problem is that it does not read .phtml file.</DIV>
<DIV> </DIV>
<DIV>I put php folder at C:Program files/Apache group/Apache/php</DIV>
<DIV> </DIV>
<DIV>My maplab under C:/maplab/maplab-2.1-rc3</DIV>
<DIV> </DIV>
<DIV>I have tried MS4W, however I am now planning to establish mapserver/maplab system on company server.MS4W might not be a choice.</DIV>
<DIV> </DIV>
<DIV>By the way, I am MGIS student in Department of Geography, University of Calgary. Currently, I am working as a summer student in a environmental engineering company.</DIV>
<DIV> </DIV>
<DIV>Looking forward for your advice and thank you for your time.</DIV>
<DIV> </DIV>
<DIV>Charlie</DIV>
<DIV><BR><BR><B><I>Zak James <zak-ms@hoppsan.org></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Charlie,<BR><BR>You need to make apache aware that php code has to be handled <BR>differently by adding something like<BR>>>#Added for MapScript PHP functionality<BR>>>ScriptAlias /php/ "c:/php/"<BR>>>AddType application/x-httpd-php .php<BR>>>Action application/x-httpd-php "/php/php.exe"<BR><BR>to your httpd.conf.<BR><BR>By far the easiest way to set up maplab on windows is to use the MS4W <BR>package found here:<BR><BR>http://maptools.org/ms4w/index.phtml<BR><BR>It includes a properly configured httpd.conf and will work right away <BR>after being installed.<BR><BR>zak<BR>--<BR>Zak James<BR>Applications and Software Development<BR>DM Solutions Group Inc.<BR>http://www.dmsolutions.ca<BR><BR><BR>On Jun 8, 2004, at 4:51 AM, charley cheng wrote:<BR><BR>> Hi! Dear Lists,<BR>><BR>> This is my first time installing maplab<BR>> I install maplab on
windowsXp, apache web server, mapscript, php.<BR>> The mapscript test.php works well. I also access maplab <BR>> folder(http://localhost/mymaplab/htdocs/index.phtml). The problem is <BR>> that when read the index.phtml, it only show the code .<BR>> In httpd, I set:<BR>> <IFMODULE mod_dir.c><BR>> DirectoryIndex index.html index.html.var index.phtml default.phtml <BR>> default.html<BR>> </IFMODULE><BR>> Alias /mymaplab/ "C:/maplab/maplab-2.1-rc3/"<BR>> <DIRECTORY ? maplab-2.1-rc3 maplab ?C:><BR>> Options Indexes MultiViews<BR>> AllowOverride None<BR>> Order allow,deny<BR>> Allow from all<BR>> </DIRECTORY><BR>> why can not read index.phtml?<BR>><BR>> looking forward for any suggestion and advice<BR>><BR>> Thank you very much!!<BR>><BR>> Charlie<BR>><BR>><BR>><BR>><BR>> <?php<br>> /**<BR>> * main index frameset for maplab<BR>> *<BR>> * @project MapLab<BR>> * @revision $Id: index.phtml,v 1.6
2003/02/13 19:47:54 sacha Exp $<BR>> * @purpose main index frameset for maplab<BR>> * @author Paul Spencer (spencer@dmsolutions.ca)<BR>> * @copyright<BR>> * <B>Copyright (c) 2001, DM Solutions Group Inc.</B><BR>> * Permission is hereby granted, free of charge, to any person <BR>> obtaining a<BR>> * copy of this software and associated documentation files (the <BR>> "Software"),<BR>> * to deal in the Software without restriction, including without <BR>> limitation<BR>> * the rights to use, copy, modify, merge, publish, distribute, <BR>> sublicense,<BR>> * and/or sell copies of the Software, and to permit persons to whom <BR>> the<BR>> * Software is furnished to do so, subject to the following conditions:<BR>> *<BR>> * The above copyright notice and this permission notice shall be <BR>> included<BR>> * in all copies or substantial portions of the Software.<BR>> *<BR>> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, <BR>> EXPRESS OR<BR>> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF <BR>> MERCHANTABILITY,<BR>> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT <BR>> SHALL<BR>> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES <BR>> OR OTHER<BR>> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, <BR>> ARISING<BR>> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER<BR>> * DEALINGS IN THE SOFTWARE.<BR>> */<BR>><BR>> include_once( "./common/session/session.php" );<BR>> installSessionDirectoryHandler();<BR>><BR>> $sess_name = "sid";<BR>><BR>> initializeSession();<BR>> ........<BR>><BR>><BR>><BR>><BR>><BR>> ---------------------------------<BR>> Post your free ad now! Yahoo! Canada Personals<BR>> _______________________________________________<BR>> Maplab-users mailing list<BR>> Maplab-users@lists.maptools.org<BR>>
http://lists.maptools.org/mailman/listinfo/maplab-users<BR></BLOCKQUOTE><p><br><hr size=1>Post your free ad now! <a href="http://ca.personals.yahoo.com/"><b>Yahoo! Canada Personals</b></a><br>