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.