I'd like to do the same thing, but with PHP. The best I've go so far is:
<?php
  passthru("/www/cgi-bin/mapserv QUERY_STRING=map=/path/to/mapfile.map");
?>
Which uses the QUERY_STRING option to execute mapserv in a "shell
mode". It works, but I wonder if there is a better way, and/or if this
is a bad way to do it.

Oh, that is just slicker than anything. As long as you're not allowing the user to supply unchecked data (e.g. the path to the mapfile containing shel metacharacters), that's just excellent.

--
Gregor Mosheh / Greg Allensworth
System Administrator, HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA

Reply via email to