Opened 19 years ago

Closed 19 years ago

#1448 closed defect (worksforme)

saveMapContext to another directory fails

Reported by: debbie.pagurek@… Owned by: assefa
Priority: normal Milestone:
Component: MapScript-PHP Version: 4.6
Severity: normal Keywords:
Cc:

Description

The code on this documentation page works:
http://mapserver.gis.umn.edu/doc46/mapcontext-howto.html
    <?php
    dl("php_mapscript_40.dll");
    $oMap = ms_newMapObj("gmap_wms_context.map");
    $oMap->saveMapContext("gmap_wms_context_output.xml");
    ?>  
But you should be able to save the context document to another directory such as
c:\ms4w\tmp\ms_tmp\gmap_wms_context_output.xml but it fails. As it stands,the
context document gets saved to the same directory as the mapfile, but this
directory is probably not web accessible. Also - the documentation doesn't say
that you can't save to another directory.

Change History (2)

comment:1 by assefa, 19 years ago

Cc: mapserver-bugs@… added
Owner: changed from mapserverbugs to assefa
Could not reproduce this using 4.6 and 4.7.

What is the error that is given ?  I tried a script similar to the one 
described in bug :

<?php
dl("php_mapscript_46.dll");

$oMap = ms_newMapObj("d:/msapps/gmap-ms40/htdocs/gmap75_wms.map");
$oMap->saveMapContext("d:\\msapps\\tmp\\bug1448\\ttt45.xml");

echo "done";

?>

comment:2 by assefa, 19 years ago

Resolution: worksforme
Status: newclosed
closing the bug.
Note: See TracTickets for help on using tickets.