[Mapserver-users] ms_newMapObj in latest 4.0 changed?

Vinko Vrsalovic vinko at cprsig.cl
Mon Jul 28 15:33:21 PDT 2003


With this script:

[vinko at 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 at 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[|- at -|]vinko.cl>
http://www.cprsig.cl



More information about the MapServer-users mailing list