Νίκος Παπαδάκης 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/
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to