phpmapscript code problem

Alberto Cavalli alberto.cavalli at SINTRANET.IT
Wed Sep 8 03:28:11 EDT 2004


Hi dear, I'm new with phpmapscript,
I've read the documentations about phpmapscript and I tried to make my
simple code to see my map in a web like as describe in this document (php
mapscript 40 by example how to at this link
http://mapserver.gis.umn.edu/doc/phpmapscript-byexample-howto.html) but I
can't display anything else than an error message like this:

draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); ?>  >
this is the code in my phtml file:
 <?php
 dl('php_mapscript.so');
 $map_path="c:/ms4w/Apache/htdocs/apps/maplab_2.1/tutorial/";
 $map = ms_newMapObj($map_path."tutorial.map");
 $image=$map->draw();
$image_url=$image->saveWebImage(MS_PNG,1,1,0);

 ?>
  <HTML>
        <HEAD>
<TITLE>Example 1: Displaying a map</TITLE>
</HEAD>
<BODY>
<IMG SRC=<?php echo $image_url; ?> >
</BODY>
 </HTML>


What's wrong
Can someone help me
regards
alberto



More information about the mapserver-users mailing list