PHP Different Environments for Different Users
<p>I've got a PHP application which already has multiple environments setup on different servers (Development, Staging and Production). I'd like to be able to direct different users to different environments based on a database column. We charge users a monthly fee for this application, and we'd like to be able to offer certain users (ones we invite like our mentors) to use our Staging environment so they can help us spot potential problems before they go into production. </p>

<p>What is the best way to handle this? Have a 'environment' column in our users table and redirect the user to the proper environment after they login?</p>

<p>I can't seem to figure out how others have handled this from a good bit of Googling, so any advice would be greatly appreciated.</p>

<p>Thanks.</p>
