PHP Wrapper to hide mapfile location

Steven Monai stevem at SPATIALMAPPING.COM
Mon Oct 17 12:56:40 EDT 2005


I have had some measure of success creating a URL wrapper in PHP for use
with the MapServer CGI. My script uses a different approach than the
previous poster's example. Since it appears there might be some demand for
it, I have decided to "open source" my script, and see if it can be of use
to others. The script is available under an "MIT-like" license, which
basically means you can use it however you like (with only minor
conditions).

The "wrap_url" script, as I call it, is very easily configured. In most
cases, one need only specify the MapServer URL with the "map" parameter,
e.g. "http://localhost/cgi-bin/mapserv?map=/path/to/my/map.map". For more
general-purpose uses, wrap_url understands relative URLs and also handles
redirects. Basic Authorization is also (somewhat) supported
(e.g. "http://myname:mypass@localhost/").

Anyone who is interested in a copy of "wrap_url.php" can contact me via
email.

Regards,
-SM
--



More information about the mapserver-users mailing list