[mapserver-users] Problem with template file
Mark Giesbrecht
mgiesbrecht@geoarctic.com
Thu, 19 Sep 2002 13:42:22 -0600
This is a multi-part message in MIME format.
--------------3BDF84B1FD67083B17FCB1E1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi Matthew,
I think that it has to do with the fact that mapserver does not recognize the
.php4 extension as an web-based file, thus returning an error.
A solution you could try is to configure your web server setup (Apache, IIS?)
to recognize .html as an executable script, done so by PHP. I had seen this
in an old Linux Journal article, where it covered migrating an HTML based
site to PHP.
I can check this evening for the article, and can sum it for you if you'd
like.
Cheers,
Mark
Matthew Archer wrote:
> Hi,
>
> I have a problem using a php file as a temmplate. using 'map.html' works
> ok, using 'map2.php4' generates this error:
>
> Content-type: text/html msReturnPage(): Web application error. Malformed
> template name.
>
> Both files exist and their contents are the same (only html actually, no
> php code).
>
> Why????
>
> WEB
> TEMPLATE "map.html"
> # TEMPLATE "map2.php4"
> IMAGEPATH "c:\apache\htdocs\tmp\"
> IMAGEURL "\tmp\"
> END
>
> ********************************
> Matthew Archer
> T-Kartor Sweden AB
> Box 5097
> S-291 05 Kristianstad
> SWEDEN
>
> Phone: +46-(0) 44-206823
> Mobile: +46-(0)733-206823
> Fax: +46-(0) 44-128256
> mailto:ma@t-kartor.se
> http://www.t-kartor.se
> Kristianstad: http://www.karthotellet.com/map/?id=920
> ********************************
>
--------------3BDF84B1FD67083B17FCB1E1
Content-Type: text/x-vcard; charset=us-ascii;
name="mgiesbrecht.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Mark Giesbrecht
Content-Disposition: attachment;
filename="mgiesbrecht.vcf"
begin:vcard
n:Giesbrecht;Mark
tel;fax:403-264-5848
tel;work:403-290-1320 ext25
x-mozilla-html:TRUE
url:http://www.geoarctic.com
org:GeoArctic International Services, Ltd.
adr:;;#1250 815 8 Ave SW;Calgary;Alberta;T2P 3P2;Canada
version:2.1
email;internet:mgiesbrecht@geoarctic.com
title:GIS Programmer/Analyst
fn:Mark Giesbrecht, M.Sc.
end:vcard
--------------3BDF84B1FD67083B17FCB1E1--