PHP Developers Network
http://forums.devnetwork.net/

Different databases and sites.
http://forums.devnetwork.net/viewtopic.php?f=39&t=138169
Page 1 of 1

Author:  chris98 [ Mon Aug 05, 2013 2:37 am ]
Post subject:  Different databases and sites.

Hello, I am currently making different sites, (similar to heavengames), and I was wondering.Should I have all the sub domain sites on different databases, or should I have every site through one?

Any comments would be appreciated thanks.

Author:  requinix [ Mon Aug 05, 2013 4:11 am ]
Post subject:  Re: Different databases and sites.

Maybe. What are all these subdomains for? What's the difference between one and another?

Author:  chris98 [ Mon Aug 05, 2013 5:06 am ]
Post subject:  Re: Different databases and sites.

I am making a Stronghold fansite, and so far, I have a main site, (similar to heavengames), and a stronghold 2 subdomain, as well as a stronghold crusader one.(Not on the web YET) At the moment, I have them all through one database, and since I only have one forum, I was wondering what to do.

A.) Should I split them up to a forum for each subdomain site?

B.) Should I keep it the same?

C.) Should I keep the forum through a seperate one altogether?

Which would be the best way top lay it out?

Author:  requinix [ Mon Aug 05, 2013 12:20 pm ]
Post subject:  Re: Different databases and sites.

a) If you want to keep them separate from each other, yes, but most commonly there'll just be one forum for an entire site and you have subforums for the subdomains.
b) What I was trying to find out is whether the database structures would be the same. Same tables and same code with just different branding? Or do the subdomains behave differently with different purposes?
c) Separate what?

Author:  chris98 [ Tue Aug 06, 2013 3:33 am ]
Post subject:  Re: Different databases and sites.

Yes, all the database structures would be the same, because I would just be using the same scripts for them.The sub domains would probably behave the same.They would have different purposes though.

By "seperate", I meant: Should I keep all the forums through a seperate subdomian altogether?

I.E. http://forums.YOURDOMAIN.com

Author:  requinix [ Tue Aug 06, 2013 1:49 pm ]
Post subject:  Re: Different databases and sites.


Author:  chris98 [ Tue Aug 06, 2013 2:04 pm ]
Post subject:  Re: Different databases and sites.

Right, thanks, I might try that.But wouldn't it make it easier for an attacker then, if it's all through one database?

Author:  requinix [ Tue Aug 06, 2013 3:16 pm ]
Post subject:  Re: Different databases and sites.

You're running the same code. If there's a flaw on one site then it'll show on the other site too. And if you literally run the exact same code then it's actually better: you fix the bug for one site and it's fixed for all the others.

No net difference.

Author:  chris98 [ Wed Aug 07, 2013 2:39 am ]
Post subject:  Re: Different databases and sites.

Right, thanks for your advice.I was just wondering what other people might think.If I need any help on it, I'll post back here.

Thanks.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/