Question about PHP programs
Hi,
I am not a php coder, but I am in the process of learning enough to create my own website. If there are any experts out there, or anyone with some good knowledge of PHP, here goes a question.
Is there a way for PHP to redirect visitors based on the domain name that they put in? If so, could someone give me a sample code for that? or at least tell me some of the commands that would be required.
The thing is that I am trying to make a decision between two hosts: One offers 'domain pointing' not 'domain add-ons' -- but this is a good host, that I know has proven to be up most of the time and fast access. Then there is another host that offers domain ad ons, but has failed me on occasions -- it was slower, for reasons unknown.
So, if PHP has a way to redirect based on domain, then I would choose the reliable one and create a page for redirecting the domains. I do not want to pay for perl programs, or cgi's that might do this, that is why I am looking into PHP.
|