<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Trying to get Mapserver and PHP Mapscript installed, under already
running Apache (XAMPP, W7, Apache 2.2.14 (Win32),PHP 5.3.1)<br>
Have followed advice I could find, as best I could:<br>
1. followed steps <br>
<a
href="http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#i-installing-the-ms4w-mapserver-binaries-in-other-environments">http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#i-installing-the-ms4w-mapserver-binaries-in-other-environments</a><span
class="Apple-style-span" style="border-collapse: separate; color:
rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px;
font-size: medium;"></span><br>
Using files from ms4w 2.3.1.<br>
So listed dlls are in C:\xampp\cgi-bin<br>
php_mapscript.dll<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0);
font-family: 'Times New Roman'; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: 2; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px; font-size:
medium;"><span class="Apple-style-span" style="font-family:
Arial,Helvetica,sans-serif; font-size: 12px; line-height: 16px;">
<span class="Apple-converted-space"></span></span></span> is in
C:\xampp\php\ext<br>
Various paths in conf/httpd.conf set <br>
Mapserver running, for exampled testing <a
href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map">http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map</a>,
OK; commandline tools OK.<br>
php.ini has extension=php_mapscript.dll, php.ini is the correct one
(have activated/deactivated several other extensions which are then
reflected in php_info)<br>
<br>
2. now I want the PHP mapscript to work, the goal...<br>
testing with quickmap.php (got rid of the dl() call as it's not
supported and I have mapscript in php.ini as an extension)<br>
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; font-size: medium;">"Call to undefined function
ms_newMapObj() in<span class="Apple-converted-space"> </span><b>C:\xampp\htdocs\quickmap.php</b><span
class="Apple-converted-space"> </span>on line<span
class="Apple-converted-space"> </span><b>27"<br>
</b>hmm, ok, and the mapscript extension is not showing up in
php_info either<br>
running: php.exe ....htdocs/phpinfo_mapscript.php or any *.php
using the mapscript dll, getting<br>
...<br>
Module compiled with module API=20060613<br>
</span>PHP compiled with <span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0);
font-family: 'Times New Roman'; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: 2; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px; font-size:
medium;">module API=20090626<br>
...they must match ...<br>
<br>
Suggestions? Do I have to compile </span>php_mapscript.dll to
somehow match the PHP compilation?<br>
<br>
/Paul<br>
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; font-size: medium;"> </span> <br>
</body>
</html>