[Mapserver-users] how to use variable substitution in mapscript-client?
Daniel Morissette
morissette at dmsolutions.ca
Mon Dec 1 21:14:35 PST 2003
%variable% substitutions are supported only with the mapserv CGI, but
they are not supported via any flavour of MapScript (PHP, Perl or
other). If you want to have %variable% substitutions in MapScript then
you'll have to do them yourself.
Daniel
Frieso ter Haseborg wrote:
> Hi,
>
> how do I use mapservers variable-substition-function with a
> mapscript-client?
>
> I'm using a PHP/Mapscript as wms-server which expects parameters for
> security-purposes, the corresponding mapfile section looks like this:
>
> [...]
> CONNECTIONTYPE WMS
> CONNECTION "http://my.ip/wms/wms.php?uid=%uid%"
> [...]
>
> A request like
> http://my.ip/cgi-bin/mapserv.exe?map=../htdocs/wms/test.map&version=1.1.
> 0&request=getMap&uid=test
> works great, so uid's value is available in the wms.php.
>
> But how do I implement this function when using another PHP/Mapscript as
> a wms-client? When creating a new MapObj and drawing the map,
> url-parameters or cookies appear not to be passed to the mapserver or
> rather the wms.php.
>
> Any hint would be appreciated.
>
> TIA,
>
> Frieso ter Haseborg
> - Software Development -
>
> --
>
> --------------------------------------------------
> S&F Datentechnik GmbH&Co.KG
> Reimersstr. 41b
> 26789 Leer, Germany
>
More information about the MapServer-users
mailing list