[Mapserver-users] ms_newMapObj in latest 4.0 changed?
Vinko Vrsalovic
vinko@cprsig.cl
Mon, 28 Jul 2003 18:33:21 -0400
With this script:
[vinko@ikonos html]$ cat draw.php
<?php
dl("php_mapscript40b2.so");
$map = ms_newMapObj("/tmp/map");
$i = $map->draw();
$url = $i->saveWebImage();
?>
<img src=<?php echo $url?>>
I get this error:
PHP Warning: [MapServer Error]: msEvalRegex(): String (/tmp/map) failed
expression test.
in /var/www/html/draw.php on line 3
PHP Warning: Failed to open /tmp/map file map in /var/www/html/draw.php on line 3
PHP Fatal error: Call to a member function on a non-object in /var/www/html/draw.php on line 4
[vinko@ikonos html]$ ls -la /tmp/map
-rw-r--r-- 1 apache apache 8118 Jul 28 15:27 /tmp/map
The mapfile was generated through $map->save()
--
Vinko Vrsalovic <el[|-@-|]vinko.cl>
http://www.cprsig.cl
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users