Forum Moderators: coopster
I have a questions:
I run a website and want to use a php template that would be served by the name of the host name.
Example:
usa.domain.com should serve the template usa.php &
england.domain.com should serve the template england.php &
etc.
I am only able to currently load one template at
< include("/var/www/templates/domain.php"); >
So, if a user would visit [usa.domain.com...] it should show news etc. about the US and not the page that is currently at [domain.com...]
Can someone explain how I can do that, or point me to a website.
Also see this in the manual [php.net]