Hello,<br><br>I still have got a problem. I ve tested my mapfiles (with quickmap.php) and they work fine, but the problem is the same. My php/mapscript code created the map image and saved it to "/ms_tmp/" but the browser couldn't display it (I got a broken img). I enclose the php/mapscript file, the mapfile and the page source.Thx for ur help and patience.<br>
<br>PHP/MAPSCRIPT FILE:<br><br><?php<br>define( "MAPFILE", "/ms4w/apps/raster/raster.map" );<br>define( "MODULE", "php_mapscript.dll" );<br>if(!extension_loaded("mapscript")) dl(MODULE);<br>
$oMap = ms_newMapObj( MAPFILE );<br>//draw<br>$oImage = $oMap->draw();<br>//output map<br>$url = $oImage->saveWebImage();<br>?><br><HTML><br> <HEAD><br> <TITLE>Example 1: Displaying a map</TITLE><br>
</HEAD><br> <BODY><br> <IMG SRC="<?php echo $url; ?>"><br> </BODY><br></HTML><br><br>MAPFILE (I created it with qgis):<br><br>MAP<br> NAME world_raster<br> SIZE 600 600<br>
UNITS dd<br><br> EXTENT -188.678212 -114.270312 189.321981 107.893344<br> PROJECTION<br> 'proj=longlat'<br> 'ellps=WGS84'<br> 'datum=WGS84'<br> 'no_defs'<br> ''<br>
END<br><br> IMAGECOLOR 192 192 192<br> IMAGEQUALITY 95<br> IMAGETYPE jpeg<br> OUTPUTFORMAT<br> NAME jpeg<br> DRIVER 'GD/JPEG'<br> MIMETYPE 'image/jpeg'<br> #IMAGEMODE PC256<br> EXTENSION 'jpeg'<br>
END<br> LEGEND<br> IMAGECOLOR 255 255 255<br> STATUS ON<br> KEYSIZE 18 12<br> LABEL<br> TYPE BITMAP<br> SIZE MEDIUM<br> COLOR 0 0 89<br> END<br> END<br><br> <br> WEB<br> <br> IMAGEPATH '/ms4w/tmp/ms_tmp/'<br>
IMAGEURL '/tmp/ms_tmp/'<br><br> METADATA<br> 'wms_title' 'world_raster'<br> 'wms_onlineresource' '<a href="http://my.host.com/cgi-bin/mapserv?map=wms.map&">http://my.host.com/cgi-bin/mapserv?map=wms.map&</a>'<br>
'wms_srs' 'EPSG:4326'<br> END<br><br> END<br><br> LAYER<br> NAME 'world_raster'<br> TYPE RASTER<br> DATA '/ms4w/Apache/htdocs/world_raster.tif'<br> METADATA<br>
'wms_title' 'world_raster'<br> END<br> STATUS DEFAULT<br> TRANSPARENCY 100<br> PROJECTION<br> 'proj=longlat'<br> 'ellps=WGS84'<br> 'datum=WGS84'<br> 'no_defs'<br>
''<br> END<br> END<br><br>END<br><br>Page source (after I ran the code the html part saw the link to the image but didn't display it.):<br><br><HTML><br><HEAD><br><TITLE>Example 1: Displaying a map</TITLE><br>
</HEAD><br><BODY><br><IMG SRC="c:/ms4w/tmp/ms_tmp/4923f091_c84_0.jpeg"><br></BODY><br></HTML><br>