[ms4w-users] help

Jeff McKenna jeffmckenna at gmail.com
Mon Mar 10 11:28:35 EDT 2008


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.

-jeff




Hi
>
> *Warning*: [MapServer Error]: msSaveImageGD(): Unable to open file
> /var/www/html/tmp/47d2ca6f_a10_0.gif for writing in *
> C:\ms4w\apps\tutorial\htdocs\hello.phtml* on line *7*
>
> *Fatal error*: Failed writing image to
> /var/www/html/tmp/47d2ca6f_a10_0.gif in *
> C:\ms4w\apps\tutorial\htdocs\hello.phtml* on line *7*
>
> This happend when i want to run this mapscript.
> <?php
> dl("php_mapscript.dll");
> $map_file="./my.map";
> $map = ms_newMapObj($map_file);
> $image=$map->draw();
> $image_url=$image->saveWebImage();
> ?>
> Any suggestions??
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20080310/b3ad1b0c/attachment.html


More information about the ms4w-users mailing list