Welcome Guest, Not a member yet? Register   Sign In
Configuration DB like Prestashop or wordpress
#2

You could build a setup.php script which you could call directly for example http://www.example.com/setup.php
This would need to modify ../config/database.php and therefore need read and write access to that file.
Then for security reasons in your MY_Controller construct you will need to check if setup.php is still present and nag them to remove it
also for security reasons if somebody calls setup.php it should check that ../config/database.php isn't already setup and if it is bail! Don't let them change it again!

Hope that helps a little.

DMyers
Reply


Messages In This Thread
RE: Configuration DB like Prestashop or wordpress - by dmyers - 11-16-2016, 09:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB