[Mapserver-users] msReturnPage(): Web application error. Malformed template name.

Gardner Lloyd Bickford III gbickford@netacus.com
Mon, 12 May 2003 10:47:15 +0200


Hello,
   I have encountered an interesting error. I have created a php module 
that acts as a wrapper for the mapserver cgi. This php script simply passes 
the http query string (everything after the ?) to the mapserver cgi using 
the file() function in php. It then eval()'s the returned string and 
outputs the result to the browser.
   I created this script so that I could take advantage of the power that 
the mapserver cgi offers while still being able to use php in my templates. 
The problem is that when I set the header or footer in my mapfile to a file 
that ends in .php then I receive the error:
msReturnPage(): Web application error. Malformed template name.
for now I have simply changed the templates names to end in .phtml as the 
file extension plays no role in how the content is handled in this case.

This isn't really a question or a bug. It's just an FYI for the archives as 
I can imagine other people may run into this issue.

Gardner


Gardner Lloyd Bickford III
gbickford@netacus.com   - email
877.811.1279                    - toll free
+34 678 83 28 48                - mobile
http://www.netacus.com  - web 

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users