On Monday 06 March 2006 22:25, VolComHG (sent by Nabble.com) wrote:
> here my code:
> <?php
>
>       if (!extension_loaded("MapScript")) dl('php_mapscript_46.dll');
>       $map_path="C:/ms4w/apps/kamap-0.1.1/htdocs/";
>       $map = ms_newMapObj($map_path."global.map");
>       $image=$map->draw();
>       $image_url=$image->saveWebImage();
> ?>
> <HTML>
>   <HEAD>
>       <TITLE>Essaie</TITLE>
>   </HEAD>
>   <BODY>
>       "<?php  >"
>   </BODY>
> </HTML>
> --
> View this message in context:
> http://www.nabble.com/PHPMapscript-t1235334.html#a3270038 Sent from the
> Mapserver - User forum at Nabble.com.

Maybe I'm out of html and php tags but try this code :
...
 <?php
        if (!extension_loaded("MapScript")) dl('php_mapscript_46.dll');
        $map_path="C:/ms4w/apps/kamap-0.1.1/htdocs/";
        $map = ms_newMapObj($map_path."global.map");
        $image=$map->draw();
        $image_url=$image->saveWebImage();
?>
<HTML>
  <HEAD>
      <TITLE>Essaie</TITLE>
  </HEAD>
  <BODY>
      "<?php  ?>"
  </BODY>
</HTML>
...

I think your :
> When I open the html page it said :
> draw(); $image_url=$image->saveWebImage(); ?>  >
is just a html/php error ? ? ?
...more... to start with php_mapscript, try the gmap :
http://mapserver.gis.umn.edu/docs/link/gmap-sample
see how it works
Blaise

Reply via email to