[mapserver-users] Fatal error: Call to undefined function ms_newMapObj() in.........

Daniel Morissette dmorissette at mapgears.com
Thu May 29 10:15:30 EDT 2008


Νίκος Παπαδάκης wrote:
> Hello.
> I try to use pamscript with php by running the following file but i 
> receive the following error message:
> *Fatal error*: Call to undefined function ms_newMapObj() in 
> *C:\ms4w\Apache\htdocs\phpms_hello.php* on line *5.*
> 
> 
> File name : phpms_hello.php in C:\ms4w\Apache\htdocs
> 

You get this because the php_mapscript.dll is not loaded in your PHP 
environment. One way to solve this is to load it using the dl() command 
at the beginning of your PHP script, e.g.

<?php
   dl("php_mapscript.dll");

   ...
?>

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/


More information about the mapserver-users mailing list