IT.COM

Need help with php code?

NameSilo
Watch
Impact
5
HI,

I need some assistance I have a search page that some of my domains are parked on. The domain shows up in the browser window correctly, and I was wondering if there is a way for me to make a header that would include the domain? i hope this makes sense.

I will send some NP bux for the best answer.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
<?php echo $_SERVER['HTTP_HOST']; ?>

embed that in any html you like...
 
0
•••
Matt,
thanks for the help I think I am missing some more pieces though.


Ok,
this is my current headerfile headerfile.php, I know I am missing some integral parts to get the domain to show up on the front page.

<?



print "


Any help would be appreciated.
<html>
<head>
<title></title>
</head>
<?php echo $_SERVER['HTTP_HOST'];

<body bgcolor=#FFFFFF text=#000000>
<center>
<table width=580 border=0 cellpadding=0 cellspacing=0>
<tr>
<td>"

?>
 
0
•••
Place exactly this in your header and the domain will show on the page and in the title:
Code:
<html>
<head>
<title><?php echo $_SERVER['HTTP_HOST']; ?></title>
</head>
<body bgcolor=#FFFFFF text=#000000>
<h1><?php echo $_SERVER['HTTP_HOST']; ?></h1>
<center>
<table width=580 border=0 cellpadding=0 cellspacing=0>
<tr>
<td>
 
0
•••
Matt,
thanks alot, I can now just adjust font etc within that code correct?

I have sent a pm to you, I appreciate your help
 
0
•••
Yes..you can change the <h1> and </h1> to <h2> and </h2> for a smaller font...or keep raising the number for a smaller and smaller font....
 
0
•••
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back