This topic is locked

Enter Connection Data in first execution

5/7/2018 9:38:41 AM
PHPRunner General questions
D
Daviant author

Dear, a consultation.

It is possible to make when an application is executed for the first time ask for the data of connection to the database?
(Google translator)

Sergey Kornilov admin 5/7/2018

It can be done but not going to be easy.
As a first step you need to teach PHPRunner to read connection settings from a separate PHP file like config.php. If this file doesn't exist you can display a dialog and ask user to enter connection settings. Then you need to write those settings to config.php file.
If user doesn't have write permissions on the root folder of your app you need to display PHP code that will go to config.php and ask them to create this file manually.