[Mapserver-users] phpmapscript basic error?
Sébastien DUBOIS
sebastien.dubois at esm2.imt-mrs.fr
Thu Jun 10 05:46:28 PDT 2004
you're right i need to put
dl('php_mapscript.so');
in my test.php to allow me to use all the ms_functions
thanks a lot
(in fact i'd test with ms_info.php that phpmapscript was well configured with
php_info())
have a nice day
--
Sébastien DUBOIS
1024D/A1140BCB:1BC8 7E21 4DA7 13D5 1B5F 876F F719 2B7A A114 0BCB
Quoting Pierre GIRAUD <pierre.giraud3 at free.fr>:
> 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
> >
> >
> >
> >
>
>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
More information about the MapServer-users
mailing list