<!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> </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> </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> </DIV>
<DIV><FONT face="MS UI Gothic" size=2><! -- Replace the value of the
parameter below to the full path to the temporary directory where MapServer will
write temporary files. Make sure the web user account can write to this
directory.--><BR><input type="hidden" name="map_web_imagepath"
value="/var/www/html/itasca/graphics/"></FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2></FONT> </DIV>
<DIV><FONT face="MS UI Gothic" size=2>and here:</FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2></FONT> </DIV>
<DIV><FONT face="MS UI Gothic" size=2><!-- Change the "value" of map to the
full path and name of your mapfile. For Windows users, add the drive
letter in front of the path. ex: "c:/inetpub/wwwroot/itasca/demo.map"
--><BR><input type="hidden" name="map"
value="/var/www/html/itasca/demo.map"></FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2></FONT> </DIV>
<DIV><FONT face="MS UI Gothic" size=2>I also edited the demo.map file's
WMS_ONLINERESOURCE value, and SHAPEPATH to "/data".
<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> </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->draw(); $url = $img->saveWebImage(MS_PNG, 0, 0, 0);
printf("<IMG height=%d src="http://192.168.10.33/itasca/%s" width=%d>\n", $url,
$map->width, $map->height); // // LEGEND // $img = $map->drawLegend();
$url = $img->saveWebImage(MS_PNG, 0, 0, 0); printf("</DIV>
<DIV> </DIV>
<DIV>I'm running Fedora 5. Does anyone have any ideas what the problem
could be?</FONT></DIV></DIV></BODY></HTML>