[mapserver-users] what version of mapserver is installed?

Daniel Morissette morissette at dmsolutions.ca
Mon Sep 2 10:23:08 PDT 2002


Toni Hernández wrote:
> 
> hello everybody!!!
> Is there anyway to know what version of mapserver is installed in one
> computer?
> 

There are a few ways:

1- If you have an application running with the 'mapserv' CGI, then you
can look at the HTML source of a page produced by MapServer and at the
top you'll find a HTML comment with the version information.  This works
with any version of MapServer back to at least 3.3 and probably even
older versions. 
e.g. 
<!-- MapServer version 3.6.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE -->

2- Starting around version 3.4, you can execute "mapserv -v" at a
command prompt and get the equivalent of #1 above.

3- If using PHP MapScript then you can call ms_getVersion()
   With Perl or other MapScript, it should be msGetVersion()

Daniel
-- 
------------------------------------------------------------
 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