[mapserver-users] mapscript install

Daniel Morissette morissette at dmsolutions.ca
Wed Jul 25 09:13:57 EDT 2001


Benoit Véler wrote:
> 
> >An error message or a description of what goes wrong would have helped
> >us help you...
> 
>     What goes wrong is that I can see the
> c:/localhost/mapscript/phpinfo_mapscript.phtml under my browser as if I
> was under Notepad...

Ah!  Now I can help!  :)

The problem is that your PHP installation does not recognize ".phtml" as
a PHP file extension.  Assuming you're using PHP4 under Apache then you
need to add the following line with the other PHP-related AddType lines
in the httpd.conf:

  AddType application/x-httpd-php .phtml 

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.



More information about the mapserver-users mailing list