[Mapserver-users] how to use variable substitution in mapscript-client?

Frieso ter Haseborg ter-haseborg at sf-datentechnik.de
Mon Dec 1 03:28:06 EST 2003


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