2 Websites, 2 Domains, Same codebase |
[eluser]pickupman[/eluser]
[quote author="JanDoToDo" date="1274009391"]Thanks for your reply! The problem with that one is that some of the data is global and so would need to connect to two databases! How would I accomplish this?[/quote] User guide wins again. You could then use a conditional php tag to set the DB variable like: Code: $DB = ($_SERVER['HTTP_HOST'] =='www.site1.com') ? 'group_1' : 'group_2'; |
Messages In This Thread |
2 Websites, 2 Domains, Same codebase - by El Forum - 05-15-2010, 08:23 AM
2 Websites, 2 Domains, Same codebase - by El Forum - 05-15-2010, 08:33 PM
2 Websites, 2 Domains, Same codebase - by El Forum - 05-16-2010, 12:29 AM
2 Websites, 2 Domains, Same codebase - by El Forum - 05-16-2010, 06:53 AM
2 Websites, 2 Domains, Same codebase - by El Forum - 05-17-2010, 03:22 AM
2 Websites, 2 Domains, Same codebase - by El Forum - 05-17-2010, 07:28 AM
2 Websites, 2 Domains, Same codebase - by El Forum - 05-17-2010, 07:44 AM
2 Websites, 2 Domains, Same codebase - by El Forum - 05-17-2010, 08:39 AM
2 Websites, 2 Domains, Same codebase - by El Forum - 05-17-2010, 05:20 PM
|