Menu

#725 Configuration file outside PGV folder tree

phpGedView
open
nobody
None
5
2006-11-07
2006-11-07
miron
No

Can the configuration file be located outside the PGV
folder tree, like the index and media folders? This
would make version upgrades a lot easier.

Discussion

  • Laie Techie

    Laie Techie - 2006-11-10

    Logged In: YES
    user_id=1278885

    How would PGV know where to look?

     
  • Christophe B.

    Christophe B. - 2006-11-21

    Logged In: YES
    user_id=1006499
    Originator: NO

    I suggest to rename default file as : config.dist.php
    On first launch, when no config.php is found a new one is created using config.dist.php

     
  • Laie Techie

    Laie Techie - 2006-11-26

    Logged In: YES
    user_id=1278885
    Originator: NO

    opus27, the googlemap module is a good example on how this should be handled. First, include the default config file. Secondly, include the real config file if it exists. This makes it easy to add new config options in newer PGV versions without losing the old configuration.

     
  • John Finlay

    John Finlay - 2006-11-27

    Logged In: YES
    user_id=300048
    Originator: NO

    I think that this is probably the best solution that we have. One concern I have is doing that would require that the entire PGV directory be writable in order to automatically copy the default config to the user config. Unless we instruct the user to make a copy of the default config file during installation.

    --John

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.