[UMN_MAPSERVER-USERS] phpmapscript code problem

Skweda O'Bomsawin sobomsawin at KASSINI.COM
Wed Sep 8 09:37:37 EDT 2004


Is your server correctly installed to serve PHP?  Can you send your map file
so we can diagnose more accurately your problem?

Skweda O'Bomsawin


-----Message d'origine-----
De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la
part de Alberto Cavalli
Envoyé : 8 septembre 2004 03:28
À : MAPSERVER-USERS at LISTS.UMN.EDU
Objet : [UMN_MAPSERVER-USERS] phpmapscript code problem

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.752 / Virus Database: 503 - Release Date: 2004-09-03
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.752 / Virus Database: 503 - Release Date: 2004-09-03
 



More information about the mapserver-users mailing list