Paullas
Staff member
- Joined
- Jul 13, 2004
- Posts
- 5,812
- Reaction score
- 357
can anyone help as im stumped.
what i am trying to do is on parked domains just show the domain name and .uk, for exmaple when going to wrapz.co.uk on the page it only shows wrapz.uk.
The code i am using is this:
<?php
$domainstart = $_SERVER['HTTP_HOST'];
$domainname = str_replace("www.", "", "$domainstart");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><? echo "$domainname"; ?></title>
</head>
<body>
<div align="center"><? echo "$domainname"; ?> -
<a target="_blank" href="http://wrapz.co.uk/" style="text-decoration: none">
</body>
</html>
what i am trying to do is on parked domains just show the domain name and .uk, for exmaple when going to wrapz.co.uk on the page it only shows wrapz.uk.
The code i am using is this:
<?php
$domainstart = $_SERVER['HTTP_HOST'];
$domainname = str_replace("www.", "", "$domainstart");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><? echo "$domainname"; ?></title>
</head>
<body>
<div align="center"><? echo "$domainname"; ?> -
<a target="_blank" href="http://wrapz.co.uk/" style="text-decoration: none">
</body>
</html>