My guess is that your IMAGEPATH in your 'my.map' is set to a directory that does not exist ('/var/www/html/tmp/'). Try '/ms4w/tmp/ms_tmp/' instead.<br><br>-jeff<br><br><br><br><div class="gmail_quote">
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi<br>
<br><b>Warning</b>: [MapServer Error]: msSaveImageGD(): Unable to open file /var/www/html/tmp/47d2ca6f_a10_0.gif for writing
in <b>C:\ms4w\apps\tutorial\htdocs\hello.phtml</b> on line <b>7</b><br>
<br>
<b>Fatal error</b>: Failed writing image to /var/www/html/tmp/47d2ca6f_a10_0.gif in <b>C:\ms4w\apps\tutorial\htdocs\hello.phtml</b> on line <b>7</b><br><br>This happend when i want to run this mapscript.<br><span style="font-weight: bold;"><?php</span><br style="font-weight: bold;">
<span style="font-weight: bold;">dl("php_mapscript.dll");</span><br style="font-weight: bold;"><span style="font-weight: bold;">$map_file="./my.map";</span><br style="font-weight: bold;"><span style="font-weight: bold;">$map = ms_newMapObj($map_file);</span><br style="font-weight: bold;">
<span style="font-weight: bold;">$image=$map->draw();</span><br style="font-weight: bold;"><span style="font-weight: bold;">$image_url=$image->saveWebImage();</span><br style="font-weight: bold;"><span style="font-weight: bold;">?></span><br>
Any suggestions??<span style="color: rgb(33, 33, 67); font-weight: bold;"></span></div></div></blockquote></div><br>