/ Published in: PHP
URL: http://www.appsmobiledev.com/
php get current domain name without www or subdomain
Expand |
Embed | Plain Text
<?php $host = $_SERVER['HTTP_HOST']; echo "domain name is: {$matches[0]}\n"; ?>
You need to login to post a comment.
