PHPMapscript

VolComHG (sent by Nabble.com) lists at NABBLE.COM
Mon Mar 6 12:20:56 PST 2006


Tx Jeff, but it exactly what i do. I do this part in the tutorial :
1 <?php

2 dl('php_mapscript.so'); 

3 $map_path="/var/www/html/ms/map_files/";
        
4 $map = ms_newMapObj($map_path."europe.map");
5 $image=$map->draw();
6 $image_url=$image->saveWebImage();

7 ?>

8  <HTML>
9   <HEAD>
10      <TITLE>Example 1: Displaying a map</TITLE>
11  </HEAD>
12  <BODY>
13      <?php  >
14  </BODY>
15 </HTML>

in my case it do it :

<?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>

and when i open my html page it write it :

draw(); $image_url=$image->saveWebImage(); ?>

i really dont undersand why !!!

Plz help me !!!  (Hey Jeff youre good, i read your doc "PHP/Mapscript
Reference")


--
View this message in context: http://www.nabble.com/PHPMapscript-t1235334.html#a3268884
Sent from the Mapserver - User forum at Nabble.com.



More information about the MapServer-users mailing list