[mapserver-users] PHP/Mapscript install error

TCHaddad TCHaddad at cshore.com
Tue Jun 25 14:55:07 EDT 2002


Hello,

in trying to set up PHP/mapscript for the first time we got the following error:


Warning: MapScript: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20020429, debug=0, thread-safety=1 These options need to match in E:\Program Files\php\test.php on line 9

test.php is as follows:



    <HTML>
    <BODY>

    <?php 
    if (PHP_OS == "WINNT" || PHP_OS == "WIN32")
    {
      dl("php_mapscript.dll");
    }
    else
    {
      dl("php_mapscript.so");
    }
    phpinfo();
    ?>

   </BODY>
   </HTML>

Can anyone point us in the right direction? 

This is PHP version 4.1.2, and Mapscript from :

http://www2.dmsolutions.ca/mapserver/dl/mapserver-3.6.0-win32-php4.1.2-libwww.zip

thanks,

Tanya




More information about the mapserver-users mailing list