[Mapbender-dev] hardwired version number
Samson, Marko
Marko.Samson at wald-und-holz.nrw.de
Wed Jan 9 09:44:41 EST 2008
I agree to your thoughts about 'nonconfigurable' version number.
A name like constants.php instead of something like version would be nice, too, so we could use it for different things.
-mapbender.conf for the configuration of Mapbender
-constants.php for nonconfigurable constants of Mapbender
Looks like a clean differentiation to me.
Next step would be the database thing for the check/setup/update. A table to control the update or sth like that.
But maybe lets start with the constants.php first?!
greets,
Marko Samson
-----Original Message-----
From: mapbender_dev-bounces at lists.osgeo.org [mailto:mapbender_dev-bounces at lists.osgeo.org] On Behalf Of Christoph Baudson (WhereGroup)
Sent: Tuesday, January 08, 2008 11:41 AM
To: Mapbender Developer List
Subject: [Mapbender-dev] hardwired version number
On Monday we discussed this at the IRC meeting, citing the protocol
--
e) Where to put the version number of Mapbender?
Kicked off by Marko's idea back in September:
http://lists.osgeo.org/pipermail/mapbender_dev/2007-September/000685.html
The idea is to have the version number of Mapbender hardwired, so that Mapbender "knows" what version it has. There were various ideas
- in mapbender.conf
- a new constants.php file
- a new version.txt file
We still need to work out which solution will be best.
Marko proposed to also store the version number in the database in order to check if the database is compatible to the software, which was believed to be a sensible idea.
--
My idea is to have a new PHP file that contains system constants, maybe called system.php. This could be located in "php". The following arguments led me to my suggestions:
- a PHP file indicates it is a machine readable file, and not a user readable file
- declaring it as a constant (and not storing it in the conf folder) will indicate that it's not to be changed
- a javascript variable could easily be derived from that constant
- the php file is extendable for other possible system wide constants
The reason I would advise against a conf file is
- that the version number is not configurable
The reason I would advise against a txt file is
- a txt file would suggest that it is regarded human readable, and not machine readable.
- including a txt file in a php file is not good style
Please share your thoughts.
--
_______________________________________
W h e r e G r o u p GmbH & Co. KG
Siemensstraße 8
53121 Bonn
Germany
Christoph Baudson
Anwendungsentwickler
Fon: +49 (0)228 / 90 90 38 - 25
Fax: +49 (0)228 / 90 90 38 - 11
christoph.baudson at wheregroup.com
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
_______________________________________
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Arnulf Christl, Olaf Knopp, Peter Stamm
_______________________________________
_______________________________________________
Mapbender_dev mailing list
Mapbender_dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapbender_dev
More information about the Mapbender_dev
mailing list