HOW TO integrate EI with my own script?

Discuss everything related to PHP Easy Installer. All versions. Any questions related to the PHP Easy Installer developing or using should be posted to this forum.

Moderator: alexandrleonenko

administrator
Site Admin
Site Admin
Posts: 6010
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO integrate EI with my own script?

Postby administrator » Jul 14th, '11, 16:07

1. Setting up parameters in file settings.php.
Read here: http://www.apphp.com/php-easyinstaller/ ... ng_started

2. Prepare SQL DUMP:
Using phpMyAdmin or another tool, create SQL dump file and download the entire SQL dump file to you computer. Replace content of this file with the content
of sql_dump/create.sql, sql_dump/update.sql and/or sql_dump/un-install.sql files. In admins table replace username and password values with <USER_NAME>
and <PASSWORD> and put before all table names <DB_PREFIX> (for example: `<DB_PREFIX>test`).

3. Add following lines of code at the top of the default starting file of your script (application):

Code: Select all

 require_once("inc/config.inc.php");

if (!file_exists(EI_CONFIG_FILE_PATH)) {       
     header("location: install.php");
     exit;
}


4. Start Installation Process.
To start installation process just type in your browser

Code: Select all

http://{your_site_address}/(your_script_directory)/install.php

Return to “ApPHP Easy Installer {developers/users}”