This topic is locked
[SOLVED]

 manage multiple project

1/8/2016 6:02:55 AM
PHPRunner General questions
F
Francesco_5000 author

Hi,
In my activities I use the same PHPRunner project with different customers, for security reasons each customer has it's own mysql database. As a result, I need to build the same project for each customer, and this is not efficient, especially when I do upgrades.
I know that PHPRunner enterprise can manage more than one database connection, but - if I undesrstand well - it's necessary to set one of those connections as primary.
I'm wondering if it's possible to create some kind of control, for example in the login page.
After the login, the customer is automatically redirected to it's data, but using always the same php files.
[edit]
As an alternative, I think to a sort dynamic database connection
[/edit]

Sergey Kornilov admin 1/8/2016

If databases are identical you should definitely use a single project a switch to selected customer database dynamically.
Here is an example of how this can be done:

http://www.asprunner.com/forums/topic/22343-how-to-make-single-project-connect-to-different-databases-passing-database-name-via-url/

F
Francesco_5000 author 1/8/2016

Thanks for the answer