Hypothetically, let's say I had multiple installations of some odd MySQL/PHP driven software. They are the same software so the database table structure is the same cross all of the installs. What I want to do, is make the software use a different database prefix for just one table. Specifically, a user table. So say the installs are set up like this:
- Main install: /home/www/main, database main, prefix is1
- Second install: /home/www/second, database main, prefix is2
- Third install: /home/www/third, database main, prefix is3
So what I want is to tell second install and third install to pull from the users table on prefix is1 for its own data via that table. Thus, any user that registers on main install is also registered on second and third and vice versa. Is it possible, and how would I do it if it is? Even if it's just a workaround that gives the same basic result I would be happy.
Your php code likely goes something like this in something like cfg.php:
and in something like user.model.php:
So you need to change in two of three installs code for working with 'users' table. But it seems to be too dangerous.