[mapserver-users] Template problem

Steve Lime Steve.Lime at dnr.state.mn.us
Mon Sep 8 14:37:02 EDT 2008


You're trying to mix PHP and HTML templates. That won't work as far as I know unless there is some
funky piping you can do in Apache 2. MapServer parses the template specified and echos the output
to stdout so it's not interpreted by anything else before it hits the user's browser.

Steve

>>> On 9/7/2008 at 4:34 PM, in message <48C448F2.6030504 at kalliany.at>, Rainer
Kalliany <rainer at kalliany.at> wrote:
> Hello,
> 
> I'm using MapServer 4.8 via the MS4W package and I can't get template 
> substitutions to work.  I tried adding a WEB section like
> 
>    WEB
>      TEMPLATE '/ms4w/Apache/htdocs/ka-map-1.0/index.php'
>    END
> 
> to my map file (see attachment), yet when I add a template string (I tried 
> [version], for example) to index.php, it just gets displayed literally.
> 
> Is there any other option I need to set?
> 
> Thanks in advance,
> 
> Rainer
> 
> 2008-09-07, 21:35 UTC



More information about the mapserver-users mailing list