Welcome Guest, Not a member yet? Register   Sign In
App Installer
#1

[eluser]getSurreal[/eluser]
Is there any existing installer that will on first use of a new install of my app update the system/application/config/config.php file with user defined settings?

For example the url will need to be updated
$config['base_url'] = "http://{user-customized}/";
#2

[eluser]MCrittenden[/eluser]
Did you ever find an answer to this?
#3

[eluser]getSurreal[/eluser]
Deleted this post.
#4

[eluser]getSurreal[/eluser]
This works instead of manually editing it.

$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
$config['base_url'] .= "://".$_SERVER['HTTP_HOST'];
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);




Theme © iAndrew 2016 - Forum software by © MyBB