Get domain name

DescriptionActionscript snippet by - 07/08/10

This uses php to get the current domain name. If you want to make this into a link, just concadnate "http:" before the server superglobal.

Tags

<?php
# Using HTTP_HOST

$domain = $_SERVER['HTTP_HOST'];
echo $domain;
?>
  • Share
Submitted by: Adam J Nowak
http://hyperspatial.com

Comments and Feedback