Friday 22 August 2003 5:33:30 am
How do I get the domainname the site is running on? So, if the url is "http://www.mydomain.com/index.php/www/content/view/...", how do I get 'mydomain.com' (without 'www' plz) out of it? The next thing I'd like to do, is to search a specific folder (sites) for a folder named 'mydomain.com' (and get the id of that folder).
The reason I want to do this, is because I'm building one site, that can be used by multiple sites, but with other id's (so the content is entirely different). I have a folder (sites) that contains other folders (mydomain.com, mycompany.net, amioriginalorwhat.com, etc...). Result: If the domainname for instance is 'mycompany.net', the script looks for that domainname and shows all the content for 'mycompany.net'. Hope anyone can help me! Thanx in advance, Mark
|