HTML template naming
Jim T. Bowen
bowenj at peligroso.gaiaenv.com
Fri Mar 16 10:23:41 PST 2001
Poor man's patch:
Use a httpd redirect to the PHP page...
(e.g., <META HTTP-EQUIV="refresh" content="1; url=template1.php">)
-----Original Message-----
From: owner-mapserver-users at lists.gis.umn.edu
[mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Thorsten
Fischer
Sent: Friday, March 16, 2001 9:58 AM
To: mapserver-users at lists.gis.umn.edu
Subject: HTML template naming
Dear list,
I noticed that HTML templates in the WEB section have to be named with a
.html
suffix. That means,
WEB
TEMPLATE template.html
[ ... stuff .. ]
END
will be accepted my mapserver, but
WEB
TEMPLATE template.phtml
[ ... stuff .. ]
END
will throw the following error:
Content-type: text/html returnHTML(): Web application error. Malformed
template
name.
My question is: is this a desired behaviour? Some webservers are configured
to
let php code be executed from .phtml and/or .php files only. What am I to do
if there is code that must be executed in my .phtml templates?
I did not check if the same restrictions apply to the header and footer
directives as well, but I guess that they use the same template name
parsing.
Thorsten
--
Thorsten Fischer thfischer at mapmedia.de
---------------------------------------------------------
MapMedia - Kartographie und raumbezogene Informationssysteme
Am Borsigturm 42
13507 Berlin
Deutschland
http://www.mapmedia.de tel: +49 (0)30 43032102
---------------------------------------------------------
More information about the MapServer-users
mailing list