Query template file question

Jim T. Bowen (GAIA Consultants Inc.) bowenj at gaiaenv.com
Fri Oct 29 08:43:10 PDT 1999


Cheers Brent.  We are running 3.219b...never thought of checking the ini
(still have to get use to that feature!).  I will give it a try later
today.

Jim

Brent Fraser wrote:
> 
> Jim,
> 
>   I'm not sure what version of MapServer you're running, but if
> it's recent, have a look at the mapserv.ini file.  It has an entry
> for setting the template extension:
> 
> # File extention of template html files. Should be a regular expression.
> This
> # usually doesn't need to be changed.
> TEMPLATE_EXTENSION=\.html$
> 
> I'm not sure if this will solve your problem though.  If it doesn't,
> perhaps you could explain the flow of control between mapserver
> and PHP3 in more detail.
> 
> Brent Fraser
> 
> ----- Original Message -----
> From: Jim T. Bowen (GAIA Consultants Inc.) <bowenj at gaiaenv.com>
> To: MapServer <mapserver-users at lists.gis.umn.edu>
> Sent: Friday, October 29, 1999 8:40 AM
> Subject: Query template file question
> 
> > Hi all,
> >
> > Probably a question for Steve, but perhaps someone else can help.
> >
> > We are using PHP3 to access database information via our site.  We are
> > also using PHP3 to link MapServer with PostgreSQL.  The links are
> > rudimentary at this point, but show potential.  At this point, all we
> > have in place is:  Query function passes a unique id to PHP3 script that
> > then performs a query on PostgreSQL and dynamically creates html
> > output.
> >
> > My question lies in the 'query template' identified in the MapServer map
> > file.  The docs indicate that output can be passed to an URL or template
> > file.  I cannot find docs or eg. relating to passing the query info. to
> > an URL.  I would like to do this because MapServer does not recognise a
> > .PHP3 extension as a valid html template file.  I think I found where I
> > would need to change this in the source, but perhaps someone could shed
> > some light on this (C is not my forte).  I do not want to dick with my
> > apache settings...I believe source change would be fastest and least
> > intrusive to our web server.  Currently, I have a temporary html
> > template that grabs MapServer variables, and passes them via the URL
> > string, using an http-equiv redirect. (yuck)
> >
> > I would have included the URL for the site, but the information is
> > confidential (client request...sorry).  Thanks in advance.
> >
> >
> > Cheers,
> > Jim
> >  ___________________________________    GGG G   AAA      III    AAA
> > |  Jim T. Bowen, M.Sc., President   |  G   GG     A       I       A
> > |                                   | G     G    A A      I      A A
> > |Suite 306,  822-11th Ave. S.W.     | G     G    A A      I      A A
> > |Calgary, Alberta, Canada  T2R 0E5  | G         A   A     I     A   A
> > |Ph: 403-571-7213  Fax: 403-571-7211| G   GGGG  A   A     I     A   A
> > |_______bowenj at gaiaenv.com__________| G     G   AAAAA     I     AAAAA
> >            ICQ: 15567315              G     G  A     A    I    A     A
> >       http://www.gaiaenv.com           G    G  A     A    I    A     A
> >                                         GGGG  AAA   AAA  III  AAA   AAA
> >



More information about the MapServer-users mailing list