php - different domains same directory - codebase -
i create dynamic website php. website must work 5 different databases , 5 domain names, same codebase. when access domain of these 5, website understand domain user access , call appropriate database. see domain user access, use code this.
now, best solution have 5 domains 1 same codebase-directory? use cpanel if helps.
any help? thank in adavance!
edit: solution find create addon domains or parked domains via cpanel pointing same directory. after use $_server['server_name'];
find domain visitor use , call appropriate database.
the solution create addon domains via cpanel pointing same directory. after use $_server['server_name'] find domain visitor use , after call appropriate database.
Comments
Post a Comment