added PHP based environment switching
initial environment work for www