[Mapserver-users] phpmapscript basic error?
Pierre GIRAUD
pierre.giraud3 at free.fr
Thu Jun 10 03:08:42 PDT 2004
Hello,
did you load the php_mapscript library before calling your mapscript
functions ?
If you're using linux, it's the cas in fact,
try a simple testing php file :
<?
dl('php_mapscript.so'); //load the library
php_info();
?>
This should return the same results as "$mapserv -v".
Pierre GIRAUD
camptocamp
Sébastien DUBOIS wrote:
>Hi all,
>thanks to you to read this post with guys like you i'm improving day after day
>to be able to answer query too ... ;-)
>
>well i've start to code in phpmapscript and when I use ms_newmapobj()
>this is the error I got :
>
>Fatal error: Call to undefined function: ms_newmapobj() in
>/var/www/html/workshop/phpmapscript/test.php on line 110
>
>but this is my config on redaht 9
>
>MapScript
>MapServer version 4.2.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF
>SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
>SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL
>INPUT=SHAPEFILE
>
>
>PHP MapScript Version ($Revision: 1.194.2.3 $ $Date: 2004/05/13 21:37:44 $)
>
>To my ming the installation is ok so why mapserv don't locate ms_functions????
>
>thanks in advance
>
>
>
>
More information about the MapServer-users
mailing list