We have uploaded our cms to a dedicated server. we have two options for our users (user your own domain, use subdomain). when a user register him/her self and select subdomain and want to access his/her website so he cant access it with his/her subdomain name integrated with our domain like (car.websaz.af) instead he can access it with the template name (choosed for his/her website) integrated with our domain name like (temp7.websaz.af). I have created a php file and used gethostbyname() to resolve the hostname to ip but not working.
cod used in the file is as below:
Subdomain 'tmp12.websaz.af' resolves to <?php echo gethostbyname('tmp12.websaz.af'); ?>
Could someone help me what the problem will be?
Thanks in advance