[Mapserver-users] user-defined URL-Variables in MapFile

Frieso ter Haseborg ter-haseborg at sf-datentechnik.de
Wed Oct 1 23:48:04 PDT 2003


Hi,

okay embarrassing - the correct answer is: "RTFM"! ;-)

>From the "MapFile Reference - MapServer 4.0":
[...]
New in MapServer 4.0, variables can be substituted within mapfile
parameter values. At this time, cookie and CGI parameter values are
supported. This allows mapserver mapfiles to be aware of a user's
cookies (Good for implementing security), or non-mapserver request
parameters (Good for integrating with other systems).

Syntax: '%' + variable name + '%'
[...]

Works great!

Sorry for the annoyance,
Frieso



>-----Original Message-----
>From: Frieso ter Haseborg 
>Sent: Wednesday, October 01, 2003 6:09 PM
>To: mapserver-users at lists.gis.umn.edu
>Subject: [Mapserver-users] user-defined URL-Variables in MapFile
>
>
>Hi,
>
>is there any way to let MS pass user-defined url-variables through to a
>PHP/MapScript embedded as a wms-layer in a mapfile?
>
>I'm working on a PHP/MapScript-component for creating dynamic layers.
>The PHP shall be used in a mapfile as ogc-compliant wms-layer. It's
>implemented this way:
>
>[...]
>LAYER
>   NAME "wms"
>   TYPE RASTER
>   STATUS OFF
>   CONNECTION "http://[...]/mapscript/dynamic-layer.php" 
><!here I need a
>passthrough!>
>   CONNECTIONTYPE WMS
>   METADATA
>	[...]
>   END
>END
>[...]
>
>I need to give the PHP specific instructions e.g. for
>authorization-purposes but all the php get's are the ogc-variables.
>
>Any ideas?
>
>TIA,
> 
>Frieso ter Haseborg
>- Software Development - 
> 
>--
>
>-------------------------------------------------- 
>S&F Datentechnik GmbH&Co.KG 
>Reimersstr. 41b 
>26789 Leer, Germany
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>




More information about the MapServer-users mailing list