News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Settings_local.php

Started by Snaky_Love, July 12, 2010, 07:25:58 AM

Previous topic - Next topic

Snaky_Love

Hi, this is a very simple, but very effective feature to easily handle multiple versions / servers etc.

I would like to have this line in index.php:

// Load the local settings...
if (file_exists2(dirname(__FILE__) . '/Settings_local.php')) require_once(dirname(__FILE__) . '/Settings_local.php');

right after require_once(dirname(__FILE__) . '/Settings.php');

Varaibles in Settings_local.php would overwrite values in Settings.php - good for development and testing!

Norv

Sorry for getting so late to this, and thank you for the idea.

Since it's indeed for development and testing... I doubt it would make an appropriate default feature though.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Advertisement: