don’t get is the image showing in the browser
Jack Gibb
jack.gibb at MOHAWKCOLLEGE.CA
Sun Apr 17 08:01:55 PDT 2005
First part of map file
MAP
NAME CANADA1
STATUS ON
SIZE 800 500
IMAGETYPE PNG
IMAGECOLOR 240 240 240
SHAPEPATH "/var/www/html/data"
EXTENT -8000000 300000 5000000 1500000
UNITS METERS
PROJECTION
"proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38"
"lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83"
END
WEB
IMAGEPATH "e:/var/www/html/tmp/"
IMAGEURL "e:/var/www/html/tmp/"
END
………………………
The PHP file
<?php
dl("php_mapscript_44.dll");
$map_file="./canada1.map";
$map = ms_newMapObj($map_file);
$image=$map->draw();
$image_url=$image->saveWebImage();
?>
<HTML>
<HEAD>
<TITLE>Canadian Provinces</TITLE>
</HEAD>
<BODY>
<img src="<?php echo $image_url?>">
$image_url= <?php echo $image_url?>
<p>
….
When I run the PHP file I get the following line back.
e:/var/www/html/tmp/111374926537881.png
I get a small box at the top left with the same link location
I get an image with the correct name in the correct location
What I don’t get is the image showing in the browser. (even though it’s
there and linked to it)
What am I missing?
Running Windows XP Pro with IIS5, latest version of MS4W
More information about the MapServer-users
mailing list