Dane Posted November 8, 2007 Share Posted November 8, 2007 Hi guys, Im just wondering how a website like http://www.xippy.co.uk/ works. Its ran off one set of code and hosts over 300 websites via that one set of code. How is this done? Thanks Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted November 8, 2007 Share Posted November 8, 2007 Well xippy is basically just a normal webhost, except it provides hosting for people who want to setup a clan. I expect what happens when an account is created all that happens is the clan software is just copied over to that account and setup automatically. Xippy is no different to any other webhost. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted November 8, 2007 Share Posted November 8, 2007 the code probably isn't Copied over, but used froma entralize repository on there server. but its basically distributed software at its finest Quote Link to comment Share on other sites More sharing options...
Dane Posted November 8, 2007 Author Share Posted November 8, 2007 every site that is hosted is using just one set of code, so im thinking how can multiple databases connect to one set of code? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted November 8, 2007 Share Posted November 8, 2007 they don't you have dynamic table generator with a centralized table system, or it creates a new database for each users, depends on what you are looking for. Quote Link to comment Share on other sites More sharing options...
Dane Posted November 8, 2007 Author Share Posted November 8, 2007 any websites that explain this? Quote Link to comment Share on other sites More sharing options...
Dane Posted November 8, 2007 Author Share Posted November 8, 2007 Am i on the right lines. a subdomain is created http://subdomain.domain.com the table in the database is called "subdomain" And there is something in the code that exracts what the subdomain is to run within the website? Quote Link to comment Share on other sites More sharing options...
SilveR316 Posted November 8, 2007 Share Posted November 8, 2007 Most likely, everything is run off one database. There is a subdomain mapping table that basically just assigns a unique ID to a subdomain. All the data from that point on in other tables (members, new posts, or whatever else that is only related to a specific subdomain) contains the ID of the subdomain it belongs to. Whenever the page loads, it fetches the ID of the subdomain from the mapping table, and then all the data that gets retrieved is limited to only records that have that subdomain ID. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.