[mapserver-users] php_mapscript throubleshoot
Jeff McKenna
jmckenna at gatewaygeomatics.com
Wed Mar 11 03:52:53 PDT 2020
On 2020-03-11 4:47 a.m., Stefanos Anastasiou wrote:
> Hello,
> I also have the same problem. I have only compiled the PHPNG version
> and there is libphp_mapscriptng.so generated which I try to put in
> /usr/lib/php/2017(...) folder, as this is the extension folder shown by
> phpinfo(). But test_draw_map still fails complaining about new_mapObj
> in line 2508 (if I remember correct) of the mapscript.php file which I
> include in the beginning of the script as described in the migration
> guide https://mapserver.org/MIGRATION_GUIDE.html . I have compiled SWIG
> 3.0.12 .
>
The correct syntax is: new mapObj('path/to/file.map');
You can also find working scripts submitted by users in the "Additional
Notes, Tips" section at https://ms4w.com/trac
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/
More information about the MapServer-users
mailing list