<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-2022-jp">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="MS UI Gothic" size=2>Hi,</FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="MS UI Gothic" size=2>I'm almost set up with Mapserver, but I 
keep getting an error when I test php/mapscript.</FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="MS UI Gothic" size=2>I modified the demo_init.html file 
here:</FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="MS UI Gothic" size=2>&lt;! -- Replace the value of the 
parameter below to the full path to the temporary directory where MapServer will 
write temporary files.&nbsp; Make sure the web user account can write to this 
directory.--&gt;<BR>&lt;input type="hidden" name="map_web_imagepath" 
value="/var/www/html/itasca/graphics/"&gt;</FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="MS UI Gothic" size=2>and here:</FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="MS UI Gothic" size=2>&lt;!-- Change the "value" of map to the 
full path and name of your mapfile.&nbsp; For Windows users, add the drive 
letter in front of the path.&nbsp; ex: "c:/inetpub/wwwroot/itasca/demo.map" 
--&gt;<BR>&lt;input type="hidden" name="map" 
value="/var/www/html/itasca/demo.map"&gt;</FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="MS UI Gothic" size=2>I also edited the demo.map file's 
WMS_ONLINERESOURCE value, and SHAPEPATH to "/data".&nbsp; 
<DIV><FONT face="MS UI Gothic" size=2>However pointing the browser to 
</FONT>test_draw_map.phtml gives me an error and this is displayed:</DIV>
<DIV>&nbsp;</DIV>
<DIV>numlayers; // phpinfo(); // // RENDER MAIN MAP // // Note: If you get 
errors with the saveWebImage() call below, then make sure // that the directory 
specified by IMAGEPATH in the .MAP file exists and is // writable by the httpd 
user. // $img = $map-&gt;draw(); $url = $img-&gt;saveWebImage(MS_PNG, 0, 0, 0); 
printf("<IMG height=%d src="http://192.168.10.33/itasca/%s" width=%d>\n", $url, 
$map-&gt;width, $map-&gt;height); // // LEGEND // $img = $map-&gt;drawLegend(); 
$url = $img-&gt;saveWebImage(MS_PNG, 0, 0, 0); printf("</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm running Fedora 5.&nbsp; Does anyone have any ideas what the problem 
could be?</FONT></DIV></DIV></BODY></HTML>