Setting up GMAP for MS4W

Ruslan Nuryadin nuryadin at GMAIL.COM
Mon Feb 28 22:43:29 EST 2005


Lahn Pra wrote:

--cut--

> I made the changes and restarted the apache server. It doesn't work. In
> addition.. when I do try to access the Gmap link, I get the following
> error..
> ---
> Warning: dl(): Unable to load dynamic
> library '/ms4w/Apache/php/extensions/php_mapscript_36.dll' - The specified
> module could not be found. in C:\ms4w\apps\gmap\htdocs\gmap75.phtml on line
> 50
>
> Fatal error: Call to undefined function: ms_getversion() in
> C:\ms4w\apps\gmap\htdocs\gmap75.php3 on line 51
> ----

Latest MS4W distribution (v1.0.3, probably the one you have), uses
PHP/Mapscript version 4.2.x or 4.4.x. You have to modify this line on
ms4w/apps/gmap/htdocs/gmap75.phtml to correctly load PHP/Mapscript
extension:

   if (!extension_loaded("MapScript"))
   {
     if (phpversion() < 4)
         dl("php3_mapscript.dll");  // PHP3
     else
         dl("php_mapscript_36.dll");   // --> old text
   }

becomes:

   if (!extension_loaded("MapScript"))
   {
     if (phpversion() < 4)
         dl("php3_mapscript.dll");  // PHP3
     else
         dl("php_mapscript_44.dll");   // --> new text
   }

Make sure you have this file:

ms4w/Apache/php/extensions/php_mapscript_44.dll

--

ruslan nuryadin
nuryadin at gmail.com


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.1 - Release Date: 27/02/2005



More information about the mapserver-users mailing list