Welcome Guest, Not a member yet? Register   Sign In
Installation wizard for a Web application using Code Igniter
#1

[eluser]Unknown[/eluser]
Hi Folks,

I am building an installation wizard for an codeingiter web application(XYZ), where i need to install the script in the server and delete the Install wizard once the install is succeeded. Here, I want to run the application folder from the installation folder. I have used the code below to run the installation wizard (abc.php).

==================================================================

if(file_exists(dirname($_SERVER['SCRIPT_FILENAME']).'/XYZ/config/abc.php'))

{

$application_folder = "XYZ";

}

else

{

$application_folder = 'install';

}

==================================================================

The above code does not work and it is not redirecting to the application as desired. I have attached the index file for your reference. Please help me in this regard.

Thanks,
Nisha

Php Programmer
#2

[eluser]TheFuzzy0ne[/eluser]
You could simply have two index.php files (and call one install.php). It can set the appropriate APPPATH and BASEPATH.

In index.php, you can check to see if install.php is still there. If it is, redirect to it. If it's not, the app runs as normal.

Hope this helps.




Theme © iAndrew 2016 - Forum software by © MyBB